ansible-roles/openvpn/handlers/main.yml

12 lines
272 B
YAML

---
- name: Reload OpenVPN
service: name=openvpn state=reloaded
when: openvpn_enabled
- name: Restart OpenVPN
service: name=openvpn state=restarted
when: openvpn_enabled
- name: Reload systemd
systemd: daemon_reload=yes
when: ansible_service_mgr == 'systemd'