First stab at adding jenkins hosts local host file with local ip
This commit is contained in:
parent
00608a57ec
commit
26e33b2d00
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
4
roles/jenkins/slave/templates/hosts
Normal file
4
roles/jenkins/slave/templates/hosts
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue