Skip to content

Commit

Permalink
Allow changing service name
Browse files Browse the repository at this point in the history
  • Loading branch information
tahajahangir committed Nov 26, 2020
1 parent ae5f7e3 commit 1f063a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ openvpn_scripts_dir: "{{ openvpn_etcdir }}/scripts/"
# In some distros, the server with `foobar.conf` config file can be managed
# using `openvpn@foobar` service
openvpn_config_file: "{{ openvpn_etcdir }}/server.conf"
openvpn_service_name: '' # use the default os-dependent

openvpn_client_config_dir: "{{ openvpn_etcdir }}/ovpns"

Expand Down
4 changes: 4 additions & 0 deletions tasks/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
- "Common-default.yml"
paths:
- 'vars/os'

- name: "Set openvpn_service"
set_fact:
openvpn_service: "{{ openvpn_service_name || openvpn_service }}"

0 comments on commit 1f063a2

Please sign in to comment.