Enable onDemand prompts for WireGuard

This commit is contained in:
Jack Ivanov 2020-01-24 11:44:24 +01:00
parent 2510fc3bc4
commit 422eb2de3b

View file

@ -52,41 +52,41 @@
when: when:
- server_name is undefined - server_name is undefined
- algo_provider != "local" - algo_provider != "local"
- block:
- name: Cellular On Demand prompt
pause:
prompt: |
Do you want macOS/iOS IPsec clients to enable "Connect On Demand" when connected to cellular networks?
[y/N]
register: _ondemand_cellular
when: ondemand_cellular is undefined
- name: Wi-Fi On Demand prompt - name: Cellular On Demand prompt
pause: pause:
prompt: | prompt: |
Do you want macOS/iOS IPsec clients to enable "Connect On Demand" when connected to Wi-Fi? Do you want macOS/iOS clients to enable "Connect On Demand" when connected to cellular networks?
[y/N] [y/N]
register: _ondemand_wifi register: _ondemand_cellular
when: ondemand_wifi is undefined when: ondemand_cellular is undefined
- name: Trusted Wi-Fi networks prompt - name: Wi-Fi On Demand prompt
pause: pause:
prompt: | prompt: |
List the names of any trusted Wi-Fi networks where macOS/iOS IPsec clients should not use "Connect On Demand" Do you want macOS/iOS clients to enable "Connect On Demand" when connected to Wi-Fi?
(e.g., your home network. Comma-separated value, e.g., HomeNet,OfficeWifi,AlgoWiFi) [y/N]
register: _ondemand_wifi_exclude register: _ondemand_wifi
when: when: ondemand_wifi is undefined
- ondemand_wifi_exclude is undefined
- (ondemand_wifi|default(false)|bool) or
(booleans_map[_ondemand_wifi.user_input|default(omit)]|default(false))
- name: Retain the PKI prompt - name: Trusted Wi-Fi networks prompt
pause: pause:
prompt: | prompt: |
Do you want to retain the keys (PKI)? (required to add users in the future, but less secure) List the names of any trusted Wi-Fi networks where macOS/iOS clients should not use "Connect On Demand"
[y/N] (e.g., your home network. Comma-separated value, e.g., HomeNet,OfficeWifi,AlgoWiFi)
register: _store_pki register: _ondemand_wifi_exclude
when: store_pki is undefined when:
- ondemand_wifi_exclude is undefined
- (ondemand_wifi|default(false)|bool) or
(booleans_map[_ondemand_wifi.user_input|default(omit)]|default(false))
- name: Retain the PKI prompt
pause:
prompt: |
Do you want to retain the keys (PKI)? (required to add users in the future, but less secure)
[y/N]
register: _store_pki
when: store_pki is undefined
when: ipsec_enabled when: ipsec_enabled
- name: DNS adblocking prompt - name: DNS adblocking prompt