Skip to content

Commit d6a276c

Browse files
committed
TMP: debugging
1 parent 73137da commit d6a276c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

input.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,20 @@
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:

0 commit comments

Comments
 (0)