3
0
Fork 0

Compare commits

...

2 Commits

3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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

View File

@ -39,7 +39,7 @@ PostDown = {{ wg_postdown }}
{% if hostvars[inventory_hostname].wireguard_save_config is defined %}
SaveConfig = true
{% endif %}
{% for host in ansible_play_hosts %}
{% for host in ansible_play_hosts_all %}
{% if host != inventory_hostname %}
[Peer]