Implement better IP address/network notation.

This commit is contained in:
Andreas B. Mundt 2019-11-28 16:34:37 +01:00
parent 3670bf6597
commit 2ff1354fe3
8 changed files with 9 additions and 10 deletions

View file

@ -30,4 +30,4 @@
replace:
path: /etc/hosts
regexp: '^(127\.0\.1\.1.*)$'
replace: '#\1\n{{ ipaddr_lan }} {{ ansible_hostname }}.{{ ansible_domain }} {{ ansible_hostname }}'
replace: '#\1\n{{ ipaddr_lan | ipaddr("address") }} {{ ansible_hostname }}.{{ ansible_domain }} {{ ansible_hostname }}'