[EVO] Manager wiregard as kernel module

This commit is contained in:
2023-10-10 11:19:42 +02:00
committed by pulsar89.5
parent f7aa5380e0
commit a1fbbd57e1
5 changed files with 51 additions and 83 deletions

View File

@@ -4,9 +4,9 @@
- name: Activer les services
ansible.builtin.systemd:
enabled: true
name: wg-quick@wg{{ item }}.service
name: wg-quick@wg{{ index }}.service
become: true
loop: "{{ deploy.results | selectattr('changed', 'equalto', true) | map(attribute='index') }}"
loop: "{{ wireguard_interfaces }}"
loop_control:
index_var: index
label: wg{{ index }}
@@ -14,10 +14,10 @@
- name: Redémarrer les services
ansible.builtin.systemd:
state: restarted
name: wg-quick@wg{{ item }}.service
name: wg-quick@wg{{ index }}.service
when: wireguard_restart_services
become: true
loop: "{{ deploy.results | selectattr('changed', 'equalto', true) | map(attribute='index') }}"
loop: "{{ wireguard_interfaces }}"
loop_control:
index_var: index
label: wg{{ index }}