do etc/hosts

This commit is contained in:
chris 2019-12-18 18:15:13 +01:00
parent 2e48fb523a
commit e60eff7cf0
1 changed files with 5 additions and 0 deletions

View File

@ -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}}"