restart-vpn.yml.old 299 B

123456789101112131415
  1. ---
  2. - hosts: 10.0.0.2
  3. become: true
  4. gather_facts: false
  5. tasks:
  6. - name: Restart VPN
  7. ansible.builtin.systemd_service:
  8. name: openvpn@nord
  9. state: restarted
  10. - name: Restart unbound
  11. ansible.builtin.systemd_service:
  12. name: unbound
  13. state: restarted