fix hots for router
This commit is contained in:
parent
f72286bc30
commit
5a8c281342
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@
|
||||||
- name: Configure peers hosts file entry
|
- name: Configure peers hosts file entry
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: "^{{ hostvars[item]['AllowedIPs'] | regex_replace('/.*$', '')}} "
|
regexp: "^{{ hostvars[item]['wg_address'] | regex_replace('/.*$', '')}} "
|
||||||
line: "{{ hostvars[item]['AllowedIPs'] | regex_replace('/.*$', '')}} {{ item }}.{{ vpn_domain }}"
|
line: "{{ hostvars[item]['wg_address'] | 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