Robert Kaussow
d4253958b4
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Robert Kaussow <xoxys@rknet.org> Co-committed-by: Robert Kaussow <xoxys@rknet.org>
10 lines
279 B
YAML
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
|