xoxys.openvpn_client/handlers/main.yml
Robert Kaussow 0a609dcc01
Some checks failed
continuous-integration/drone/push Build is failing
add option to set service state
2020-05-15 14:57:08 +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