2024-02-16 09:50:24 +00:00
|
|
|
---
|
|
|
|
# tasks file for wireguard
|
|
|
|
|
|
|
|
- name: Tâches de gestion du module du noyau
|
|
|
|
block:
|
|
|
|
- name: Charger le module du noyau
|
|
|
|
community.general.modprobe:
|
|
|
|
name: wireguard
|
|
|
|
state: present
|
|
|
|
rescue:
|
|
|
|
- name: Installer le module du noyau sur l'hôte
|
|
|
|
ansible.builtin.apt:
|
|
|
|
update_cache: true
|
|
|
|
name: wireguard-dkms
|
|
|
|
become: true
|
2024-02-26 14:56:12 +00:00
|
|
|
delegate_to: "{{ wireguard_module_host | default(omit, true) }}"
|
2024-02-16 09:50:24 +00:00
|
|
|
|
|
|
|
- name: Installer l'outil de configuration
|
|
|
|
ansible.builtin.apt:
|
|
|
|
update_cache: true
|
|
|
|
name: wireguard-tools
|
|
|
|
become: true
|