restart-vpn.yml 186 B

12345678910
  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@proton
  9. state: restarted