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

@ -176,7 +176,7 @@
- name: "make 'kerberos' an alias hostname resolvable from the LAN"
replace:
path: /etc/hosts
regexp: "^({{ ipaddr_lan }}\\s.+)$"
regexp: "^({{ ipaddr_lan | ipaddr('address') }}\\s.+)$"
replace: '\1 kerberos'
when: not krb5kdc.stat.exists