fix syntax
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-05-15 15:24:17 +02:00
parent 0a609dcc01
commit 667bbd8604
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
- name: Restart openvpn client
service:
name: "openvpn@{{ openvpn_client_name }}"
state: "{% 'restarted' if openvpn_service_state == 'started' else 'stopped' %}"
state: "{{ 'restarted' if openvpn_service_state == 'started' else 'stopped' }}"
enabled: yes
listen: __openvpn_restart
become: True