From 0afb85375e11085ce7951de40386a873c0b5b7a2 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Tue, 4 Aug 2020 17:49:30 +0000 Subject: [PATCH] Add containerization skips --- handlers/main.yml | 4 ++-- tasks/main.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 3476576..2ba9853 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -6,7 +6,7 @@ loop: - stopped - started - when: not wg_syncconf + when: not wg_syncconf and not wireguard_containerized listen: "reconfigure wireguard" - name: syncconf wireguard @@ -19,5 +19,5 @@ exit 0 args: executable: "/bin/bash" - when: wg_syncconf + when: wg_syncconf and not wireguard_containerized listen: "reconfigure wireguard" diff --git a/tasks/main.yml b/tasks/main.yml index 42203f6..81da6db 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,6 +3,7 @@ setup: - include_tasks: "setup-{{ ansible_distribution|lower }}.yml" + when: not wireguard_containerized - name: Enable WireGuard kernel module modprobe: @@ -129,5 +130,4 @@ name: "wg-quick@{{ wireguard_interface }}" state: started enabled: yes - tags: - - bare-metal + when: not wireguard_containerized