feat: Move from Debian to Fedora

This commit is contained in:
2026-04-21 01:32:58 +02:00
parent 3b900d7b9c
commit 77254a7f59
9 changed files with 112 additions and 175 deletions

View File

@@ -1,23 +1,10 @@
---
# handlers file for wireguard
- name: Activer les services
- name: Enable and restart service
ansible.builtin.systemd:
name: wg-quick@{{ wireguard_interface_name }}.service
daemon_reload: true
enabled: true
name: wg-quick@wg{{ item }}.service
become: true
loop: "{{ deploy.results | selectattr('changed', 'equalto', true) | map(attribute='index') }}"
loop_control:
index_var: index
label: wg{{ index }}
- name: Redémarrer les services
ansible.builtin.systemd:
state: restarted
name: wg-quick@wg{{ item }}.service
when: wireguard_restart_services
become: true
loop: "{{ deploy.results | selectattr('changed', 'equalto', true) | map(attribute='index') }}"
loop_control:
index_var: index
label: wg{{ index }}