aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/wireguard/tasks
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-29 17:12:31 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-29 17:12:31 +0200
commit11abd588a614a574ebdb5e7fe099b920164b09f1 (patch)
tree8ffd89535ccae777eaa8f3862438a8f03a150677 /roles/wireguard/tasks
parentv0.0.21 (diff)
downloadinfra-ansible-11abd588a614a574ebdb5e7fe099b920164b09f1.tar.gz
infra-ansible-11abd588a614a574ebdb5e7fe099b920164b09f1.zip
add dependent services to mount/network interface roles
Diffstat (limited to '')
-rw-r--r--roles/wireguard/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml
index 5478c4f..279ffd0 100644
--- a/roles/wireguard/tasks/main.yml
+++ b/roles/wireguard/tasks/main.yml
@@ -27,3 +27,10 @@
enabled: true
state: restarted
when: config.changed
+
+- name: Set up service dependencies
+ ansible.builtin.include_role:
+ name: systemd_depend_iface
+ vars:
+ systemd_depend_iface_name: '{{ wg_name }}'
+ systemd_depend_iface_services: '{{ wg_dependent_services }}'