File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,7 @@ openvpn_scripts_dir: "{{ openvpn_etcdir }}/scripts/"
218218# In some distros, the server with `foobar.conf` config file can be managed
219219# using `openvpn@foobar` service
220220openvpn_config_file : " {{ openvpn_etcdir }}/server.conf"
221+ openvpn_service_name : ' ' # use the default os-dependent
221222
222223openvpn_client_config_dir : " {{ openvpn_etcdir }}/ovpns"
223224
Original file line number Diff line number Diff line change 3333 - ansible_lsb.codename != "trusty"
3434 listen : openvpn save iptables
3535
36- - name : Restart OpenVPN service
36+ - name : Restart OpenVPN service ({{ openvpn_service }})
3737 service :
3838 name : " {{ openvpn_service }}"
3939 state : restarted
Original file line number Diff line number Diff line change 1313 - " Common-default.yml"
1414 paths :
1515 - ' vars/os'
16+
17+ - name : " Set openvpn_service"
18+ set_fact :
19+ openvpn_service : " {{ openvpn_service_name|default(openvpn_service) }}"
You can’t perform that action at this time.
0 commit comments