Add default allowedips
This commit is contained in:
parent
4a83cbf3e3
commit
0dff9058ef
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: "^{{ hostvars[item]['AllowedIPs'] | regex_replace('/.*$', '')}} "
|
regexp: "^{{ hostvars[item]['AllowedIPs'] | regex_replace('/.*$', '')}} "
|
||||||
line: "{{ hostvars[item]['AllowedIPs'] | regex_replace('/.*$', '')}} {{ item }}.{{ vpn_domain }}"
|
line: "{{ hostvars[item]['AllowedIPs'] | default('') | regex_replace('/.*$', '')}} {{ item }}.{{ vpn_domain }}"
|
||||||
backup: true
|
backup: true
|
||||||
create: true
|
create: true
|
||||||
loop: "{{ groups['wireguard_clients'] }}"
|
loop: "{{ groups['wireguard_clients'] }}"
|
||||||
|
|
Loading…
Reference in a new issue