diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-12 14:52:04 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-12 14:54:58 +0000 |
commit | c72bba3be432c661788d93a8cb40defba213a226 (patch) | |
tree | 7369313f401ab344610749cd7f2f9851131352ad /roles/wireguard/tasks/main.yml | |
parent | 4a16c10dd3b870ce62fdae9b590ff207e30a2bdd (diff) | |
download | rules-c72bba3be432c661788d93a8cb40defba213a226.tar.gz |
roles/wireguard: Daemon hang with shell module
Using the raw module is a workaround for having wg-quick working in
background.
Diffstat (limited to 'roles/wireguard/tasks/main.yml')
-rw-r--r-- | roles/wireguard/tasks/main.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 9f1d01d..d1ff496 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -25,10 +25,15 @@ name: wireguard-tools state: present -- name: include service configuration for server +- name: include service configuration for hosts include_tasks: service.yml when: inventory_hostname == wireguard_domain_controller -- name: include service configuration for hosts - include_tasks: service.yml +- name: include service configuration for server + include_tasks: "{{ task }}" when: inventory_hostname != wireguard_domain_controller + loop_control: + loop_var: task + loop: + - service.yml + - cron.yml |