WireGuard: disable SaveConfig, update-users fix (#985)

- Disables SaveConfig. SaveConfig totally breaks the idea of configuration management and it breaks update-users
- WireGuard update-users fix. Mentioned in https://github.com/trailofbits/algo/issues/980#issuecomment-393720561
This commit is contained in:
Jack Ivanov 2018-06-01 17:06:03 +03:00 committed by Dan Guido
parent d7bce68738
commit ffb5a1f737
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,7 @@ Address = {{ wireguard_network_ipv4['subnet'] }}/{{ wireguard_network_ipv4['pref
ListenPort = {{ wireguard_port }}
PrivateKey = {{ lookup('file', wireguard_config_path + '/private/' + IP_subject_alt_name) }}
SaveConfig = true
SaveConfig = false
Table = off
{% for u in users %}

View file

@ -55,6 +55,7 @@
roles:
- { role: ssh_tunneling, tags: always, when: ssh_tunneling_enabled is defined and ssh_tunneling_enabled == "y" }
- { role: wireguard, tags: [ 'vpn', 'wireguard' ], when: wireguard_enabled }
- { role: vpn }
post_tasks: