Compare commits
2 Commits
8fc7870c76
...
0afb85375e
Author | SHA1 | Date |
---|---|---|
KemoNine | 0afb85375e | |
KemoNine | 1faf8d9f12 |
|
@ -6,7 +6,7 @@
|
||||||
loop:
|
loop:
|
||||||
- stopped
|
- stopped
|
||||||
- started
|
- started
|
||||||
when: not wg_syncconf
|
when: not wg_syncconf and not wireguard_containerized
|
||||||
listen: "reconfigure wireguard"
|
listen: "reconfigure wireguard"
|
||||||
|
|
||||||
- name: syncconf wireguard
|
- name: syncconf wireguard
|
||||||
|
@ -19,5 +19,5 @@
|
||||||
exit 0
|
exit 0
|
||||||
args:
|
args:
|
||||||
executable: "/bin/bash"
|
executable: "/bin/bash"
|
||||||
when: wg_syncconf
|
when: wg_syncconf and not wireguard_containerized
|
||||||
listen: "reconfigure wireguard"
|
listen: "reconfigure wireguard"
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
setup:
|
setup:
|
||||||
|
|
||||||
- include_tasks: "setup-{{ ansible_distribution|lower }}.yml"
|
- include_tasks: "setup-{{ ansible_distribution|lower }}.yml"
|
||||||
|
when: not wireguard_containerized
|
||||||
|
|
||||||
- name: Enable WireGuard kernel module
|
- name: Enable WireGuard kernel module
|
||||||
modprobe:
|
modprobe:
|
||||||
|
@ -129,5 +130,4 @@
|
||||||
name: "wg-quick@{{ wireguard_interface }}"
|
name: "wg-quick@{{ wireguard_interface }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
tags:
|
when: not wireguard_containerized
|
||||||
- bare-metal
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ PostDown = {{ wg_postdown }}
|
||||||
{% if hostvars[inventory_hostname].wireguard_save_config is defined %}
|
{% if hostvars[inventory_hostname].wireguard_save_config is defined %}
|
||||||
SaveConfig = true
|
SaveConfig = true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for host in ansible_play_hosts %}
|
{% for host in ansible_play_hosts_all %}
|
||||||
{% if host != inventory_hostname %}
|
{% if host != inventory_hostname %}
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
|
|
Reference in New Issue