Great lxc migration

This commit is contained in:
Warezjoe
2024-09-17 14:45:40 +02:00
parent 8adcc579e3
commit 5075365a45
8 changed files with 89 additions and 20 deletions

View File

@@ -1,11 +1,11 @@
- name: wireguard-client-gen
hosts: localhost
connection: local
#connection: local
vars_files:
- vault.yml
- zeus-vars.yml
vars:
user: tata
user: kate
IP_name: 'wireguard_{{ user }}_ip'
IP: "{{ lookup('vars', IP_name) }}"
priv_name: 'wireguard_{{ user }}_key'
@@ -14,7 +14,7 @@
tasks:
- name: Copy from template
template:
src: roles/wireguard-server/templates/wireguardclient.conf
src: ~/.ansible/roles/wireguard-server/templates/wireguardclient.conf
dest: ~/{{ user }}.conf
owner: "{{ ansible_user_id }}"
group: "{{ ansible_user_id }}"