Browse Source

Add containerization skips

master
KemoNine 9 months ago
parent
commit
0afb85375e
  1. 4
      handlers/main.yml
  2. 4
      tasks/main.yml

4
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"

4
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