xoxys.openvpn_client/handlers/main.yml
Robert Kaussow d4253958b4
All checks were successful
continuous-integration/drone/push Build is passing
feat: add test for Rocky Linux 8 (#1)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-committed-by: Robert Kaussow <xoxys@rknet.org>
2022-01-26 21:00:07 +01:00

10 lines
279 B
YAML

---
- name: Restart openvpn client
service:
name: "{{ __openvpn_service_prefix }}@{{ openvpn_client_name }}"
state: "{{ 'restarted' if openvpn_service_state == 'started' else 'stopped' }}"
enabled: yes
listen: __openvpn_restart
become: True
become_user: root