aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-24 00:10:22 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-24 00:10:22 +0200
commitbc6de44896b7d1d013f78fb23d8323a6877239ed (patch)
treee9f8e97fcef870d9b4ce657bacc4dac23a26bf83
parentwireguard: wg_firewall -> wg_router (diff)
downloadinfra-ansible-bc6de44896b7d1d013f78fb23d8323a6877239ed.tar.gz
infra-ansible-bc6de44896b7d1d013f78fb23d8323a6877239ed.zip
wireguard: include the router automatically
-rw-r--r--roles/wireguard/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml
index 64b0f76..5478c4f 100644
--- a/roles/wireguard/tasks/main.yml
+++ b/roles/wireguard/tasks/main.yml
@@ -1,3 +1,8 @@
+- name: Set up traffic routing
+ ansible.builtin.include_role:
+ name: router
+ when: wg_router
+
- name: Set up Wireguard
become: true
block: