do etc/hosts
This commit is contained in:
parent
2e48fb523a
commit
e60eff7cf0
|
@ -25,3 +25,8 @@
|
||||||
dest: /etc/network/interfaces.d/nodevpn.cfg
|
dest: /etc/network/interfaces.d/nodevpn.cfg
|
||||||
src: interfaces-nodevpn.cfg.j2
|
src: interfaces-nodevpn.cfg.j2
|
||||||
notify: ifup nodevpn
|
notify: ifup nodevpn
|
||||||
|
- name: adapt /etc/hosts
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/hosts
|
||||||
|
line: "{{item.value.wg_ip}} {{item.key}}"
|
||||||
|
loop: "{{hostvars|dict2items}}"
|
||||||
|
|
Loading…
Reference in New Issue