First stab at adding jenkins hosts local host file with local ip

This commit is contained in:
Kevin Fenzi 2016-10-20 19:09:22 +00:00
parent 00608a57ec
commit 26e33b2d00
2 changed files with 11 additions and 0 deletions

View file

@ -101,3 +101,10 @@
- jenkins
- jenkins/slave
- config
- name: set /etc/hosts with local ip for loopback tests.
template: src=hosts dest=/etc/hosts owner=root group=root
tags:
- jenkins
- jenkins/slave
- config

View file

@ -0,0 +1,4 @@
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
{{ ansible_default_ipv4.address }} {{ inventory_hostname }}