File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 7171 register : _vpn_protocols
7272 when : vpn_protocols is undefined
7373
74+ - name : Debug raw input
75+ debug :
76+ msg : " Raw input: '{{ _vpn_protocols.user_input | default('NOT_DEFINED') }}' (length={{ _vpn_protocols.user_input | default('') | string | length }})"
77+
7478 - name : Set VPN protocol facts
7579 set_fact :
76- _vpn_choice : " {{ vpn_protocols | default(_vpn_protocols.user_input | default('1') | trim) | string | trim }}"
80+ _vpn_choice : >-
81+ {% if vpn_protocols is defined %}
82+ {{ vpn_protocols | string | trim }}
83+ {% elif _vpn_protocols.user_input is defined and _vpn_protocols.user_input | string | trim | length > 0 %}
84+ {{ _vpn_protocols.user_input | string | trim }}
85+ {% else %}
86+ 1
87+ {% endif %}
7788
7889 - name : Set protocol flags based on choice
7990 set_fact :
You can’t perform that action at this time.
0 commit comments