From 5a8c2813425ea3b8390ebc0e8ca8480cb3e379ea Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 6 Oct 2023 19:30:38 +0300 Subject: [PATCH] fix hots for router --- tasks/configure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 315a088..7f9f3d3 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -64,8 +64,8 @@ - name: Configure peers hosts file entry lineinfile: path: /etc/hosts - regexp: "^{{ hostvars[item]['AllowedIPs'] | regex_replace('/.*$', '')}} " - line: "{{ hostvars[item]['AllowedIPs'] | regex_replace('/.*$', '')}} {{ item }}.{{ vpn_domain }}" + regexp: "^{{ hostvars[item]['wg_address'] | regex_replace('/.*$', '')}} " + line: "{{ hostvars[item]['wg_address'] | regex_replace('/.*$', '')}} {{ item }}.{{ vpn_domain }}" backup: true create: true loop: "{{ groups['wireguard_clients'] }}"