xoxys.openvpn_client/handlers/main.yml
Robert Kaussow 667bbd8604
All checks were successful
continuous-integration/drone/push Build is passing
fix syntax
2020-05-15 15:24:17 +02:00

10 lines
256 B
YAML

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