r/protonvpn: Move remote_addrs file to /var
If `/` is mounted read-only, as is usually the case, the Proton VPN watchdog cannot update the `remote_addrs` configuration file. It needs to be stored in a directory that is guaranteed to be writable.
This commit is contained in:
@@ -16,9 +16,19 @@
|
||||
tags:
|
||||
- strongswan-config
|
||||
- protonvpn-config
|
||||
- name: ensure protonvpn state directory exists
|
||||
file:
|
||||
path: /var/lib/protonvpn
|
||||
mode: u=rwx,go=rx
|
||||
owner: root
|
||||
group: root
|
||||
state: directory
|
||||
tags:
|
||||
- strongswan-config
|
||||
- protonvpn-config
|
||||
- name: ensure protonvpn remote address is configured
|
||||
copy:
|
||||
dest: /etc/strongswan/swanctl/conf.d/protonvpn.remote_addrs
|
||||
dest: /var/lib/protonvpn/remote_addrs
|
||||
mode: '0640'
|
||||
content: >
|
||||
remote_addrs = {{ protonvpn_server }}
|
||||
|
||||
Reference in New Issue
Block a user