aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/wireguard/tasks/main.yml')
-rw-r--r--roles/wireguard/tasks/main.yml11
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
remember that computers suck.