|
|
@ -10,18 +10,17 @@
|
|
|
|
- "setup-{{ ansible_distribution|lower }}.yml"
|
|
|
|
- "setup-{{ ansible_distribution|lower }}.yml"
|
|
|
|
- "setup-{{ ansible_os_family|lower }}.yml"
|
|
|
|
- "setup-{{ ansible_os_family|lower }}.yml"
|
|
|
|
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Enable WireGuard kernel module
|
|
|
|
- name: Enable WireGuard kernel module
|
|
|
|
modprobe:
|
|
|
|
modprobe:
|
|
|
|
name: wireguard
|
|
|
|
name: wireguard
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
register: wireguard_module_enabled
|
|
|
|
register: wireguard_module_enabled
|
|
|
|
until: wireguard_module_enabled is succeeded
|
|
|
|
until: wireguard_module_enabled is succeeded
|
|
|
|
retries: 10
|
|
|
|
retries: 10
|
|
|
|
delay: 10
|
|
|
|
delay: 10
|
|
|
|
failed_when: wireguard_module_enabled is failure
|
|
|
|
failed_when: wireguard_module_enabled is failure
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- wg-install
|
|
|
|
- wg-install
|
|
|
|
|
|
|
|
when: not ansible_os_family == 'Darwin'
|
|
|
|
when: not ansible_os_family == 'Darwin'
|
|
|
|
|
|
|
|
|
|
|
|
- name: Register if config/private key already exists on target host
|
|
|
|
- name: Register if config/private key already exists on target host
|
|
|
|