2020-05-15 09:21:59 +00:00
|
|
|
---
|
|
|
|
- name: Restart openvpn client
|
|
|
|
service:
|
2022-01-26 20:00:07 +00:00
|
|
|
name: "{{ __openvpn_service_prefix }}@{{ openvpn_client_name }}"
|
2020-05-15 13:24:17 +00:00
|
|
|
state: "{{ 'restarted' if openvpn_service_state == 'started' else 'stopped' }}"
|
2020-05-15 09:21:59 +00:00
|
|
|
enabled: yes
|
|
|
|
listen: __openvpn_restart
|
|
|
|
become: True
|
|
|
|
become_user: root
|