You've already forked role_wireguard
[EVO] Manager wiregard as kernel module
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user