do etc/hosts
This commit is contained in:
parent
2e48fb523a
commit
e60eff7cf0
1 changed files with 5 additions and 0 deletions
|
@ -25,3 +25,8 @@
|
|||
dest: /etc/network/interfaces.d/nodevpn.cfg
|
||||
src: interfaces-nodevpn.cfg.j2
|
||||
notify: ifup nodevpn
|
||||
- name: adapt /etc/hosts
|
||||
lineinfile:
|
||||
path: /etc/hosts
|
||||
line: "{{item.value.wg_ip}} {{item.key}}"
|
||||
loop: "{{hostvars|dict2items}}"
|
||||
|
|
Loading…
Reference in a new issue