From 161f8fc94e928da07a9e878dbd85568541ebfb9f Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Thu, 16 Jul 2026 10:30:33 -0400 Subject: [PATCH] changed local path for fetched and resent wireguard client configuration file --- .gitignore | 2 +- roles/init-server/tasks/contingent/pkg/dsnet.yml | 2 +- roles/init-server/tasks/contingent/pkg/skato_compose.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9788132..096e998 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,7 @@ uv.lock /.devcontainer/ .lock /.cache/ -/roles/**/files/user/wg/containerized/*.conf +/roles/**/files/user/wg/authorized_clients.d/*.conf # Try tyo avoid any plain-text passwords *pwd* diff --git a/roles/init-server/tasks/contingent/pkg/dsnet.yml b/roles/init-server/tasks/contingent/pkg/dsnet.yml index ecfe32f..a3b53f7 100644 --- a/roles/init-server/tasks/contingent/pkg/dsnet.yml +++ b/roles/init-server/tasks/contingent/pkg/dsnet.yml @@ -83,7 +83,7 @@ - name: Dupliciating DSNet VPN service client configuration files to control node ansible.builtin.fetch: src: "{{ ansible_user_home.stdout }}/.wg/authorized_clients.d/{{ item.name }}{{ (idx | string) }}.conf" - dest: "./roles/init-server/files/user/wg/containerized/{{ item.name }}{{ (idx | string) }}.conf" + dest: "./roles/init-server/files/user/wg/authorized_clients.d/{{ item.name }}{{ (idx | string) }}.conf" flat: true loop: "{{ vpn.clients }}" loop_control: diff --git a/roles/init-server/tasks/contingent/pkg/skato_compose.yml b/roles/init-server/tasks/contingent/pkg/skato_compose.yml index 24bdb2b..16dbf70 100644 --- a/roles/init-server/tasks/contingent/pkg/skato_compose.yml +++ b/roles/init-server/tasks/contingent/pkg/skato_compose.yml @@ -173,7 +173,7 @@ block: - name: Creating subdirectory for VPN client container specified by Compose file ansible.builtin.file: - path: "{{ ansible_user_home.stdout }}/.wg/containerized" + path: "{{ ansible_user_home.stdout }}/.wg/authorized_clients.d" recurse: true owner: "{{ ansible_user }}" group: "{{ ansible_user }}" @@ -183,8 +183,8 @@ become_user: "{{ current_user.stdout }}" when: ((fqdn is defined and fqdn != None) and item.name == fqdn) or item.name == inventory_hostname ansible.builtin.copy: - src: "user/wg/containerized/{{ item.name }}{{ (idx | string) }}.conf" - dest: "{{ ansible_user_home.stdout }}/.wg/containerized/" + src: "user/wg/authorized_clients.d/{{ item.name }}{{ (idx | string) }}.conf" + dest: "{{ ansible_user_home.stdout }}/.wg/authorized_clients.d/" owner: "{{ ansible_user }}" group: "{{ ansible_user }}" mode: "644"