ho-ansible / ansible

Playbooks and config for remote administration
1 stars 0 forks source link

systemd services which depend on VPN #85

Closed seanho00 closed 6 years ago

seanho00 commented 6 years ago

Wait for VPN interface to be up before running journald listener, otherwise it will fail on boot.

seanho00 commented 6 years ago

BindsTo= and After=

https://www.freedesktop.org/software/systemd/man/systemd.unit.html

Every service that uses VPN needs this: xnbd, rsyslog, etc.

seanho00 commented 6 years ago

Not sure how to handle this in a general way that maintains role modularity -- e.g., now my systemd-journald role relies directly on my tinc role.

seanho00 commented 6 years ago

Use BindToDevice