auto-configure-unbound.service.j2 448 B

12345678910111213
  1. [Unit]
  2. Description=Tell Ansible on NAS to reconfigure Unbound for us
  3. After=openvpn-client@proton.service
  4. BindsTo=openvpn-client@proton.service
  5. [Service]
  6. Type=oneshot
  7. ExecStart=/bin/sh -c "ssh root@nas bash -c 'cd /root/git/ansible && ansible-playbook --vault-password-file /root/.vaultpass -i /root/git/ansible/inventory /root/git/ansible/oneoffs/restart-vpn.yml'"
  8. RemainAfterExit=true
  9. StandardOutput=journal
  10. [Install]
  11. WantedBy=multi-user.target