File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ At the moment we do not support headless customisation of encryption settings. T
20
20
---
21
21
openvpn :
22
22
script_install_path : " /home/{{ user_provision.username }}"
23
- fqdn : " " # fully qualified domain name of VPN server for use in client config, uses IP address if empty
23
+ fqdn : " " # fully qualified domain name of VPN server for use in client config, uses IP address if empty - only works with port_choice: "1"
24
24
auto_install : true
25
25
# post install server config tweaks
26
26
ipv4_settings : " " # defaults to `10.8.0.0 255.255.255.0` - example, to use 192.168.140.0/24 set "192.168.140.0 255.255.255.0"
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ At the moment we do not support headless customisation of encryption settings. T
20
20
---
21
21
openvpn :
22
22
script_install_path : " /home/{{ user_provision.username }}"
23
- fqdn : " " # fully qualified domain name of VPN server for use in client config, uses IP address if empty
23
+ fqdn : " " # fully qualified domain name of VPN server for use in client config, uses IP address if empty - only works with port_choice: "1"
24
24
auto_install : true
25
25
# post install server config tweaks
26
26
ipv4_settings : " " # defaults to `10.8.0.0 255.255.255.0` - example, to use 192.168.140.0/24 set "192.168.140.0 255.255.255.0"
Original file line number Diff line number Diff line change 1
1
---
2
2
openvpn :
3
3
script_install_path : " /home/{{ user_provision.username }}"
4
- fqdn : " " # fully qualified domain name of VPN server for use in client config, uses IP address if empty
4
+ fqdn : " " # fully qualified domain name of VPN server for use in client config, uses IP address if empty - only works with port_choice: "1"
5
5
auto_install : true
6
6
# post install server config tweaks
7
7
ipv4_settings : " " # defaults to `10.8.0.0 255.255.255.0` - example, to use 192.168.140.0/24 set "192.168.140.0 255.255.255.0"
Original file line number Diff line number Diff line change 168
168
mode : ' 0644'
169
169
when : openvpn.tls_cipher | length > 0
170
170
171
+ # Only works when openvpn.port_choice == '1' because otherwise port will not be 1194 and regexp will not match
171
172
- name : Use FQDN as OpenVPN server remote in client config.
172
173
ansible.builtin.lineinfile :
173
174
path : /etc/openvpn/client-template.txt
174
- regexp : ' ^remote (.*)'
175
- line : " remote {{ openvpn.fqdn }}"
175
+ regexp : ' ^remote (.*) 1194 '
176
+ line : " remote {{ openvpn.fqdn }} 1194 "
176
177
owner : root
177
178
group : root
178
179
mode : ' 0644'
You can’t perform that action at this time.
0 commit comments