Implement better IP address/network notation.
This commit is contained in:
parent
3670bf6597
commit
2ff1354fe3
8 changed files with 9 additions and 10 deletions
|
@ -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 }}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue