Refactor(ansible): Correctly generate client config via role

This commit is contained in:
gemini
2026-04-15 19:07:42 +02:00
parent d513ba001a
commit 7c168b5d4e
2 changed files with 21 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
---
- name: Generate WireGuard client config
template:
src: wireguardclient.conf
dest: "{{ lookup('env', 'HOME') }}/{{ user }}.conf"
owner: "{{ ansible_user_id }}"
group: "{{ ansible_user_id }}"
mode: '0644'
delegate_to: localhost