7
Some checks failed
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos9) (push) Failing after 12s
Some checks failed
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos9) (push) Failing after 12s
This commit is contained in:
parent
5d1e0eedae
commit
660715497b
17
survey.yml
17
survey.yml
@ -13,6 +13,9 @@
|
|||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: aap_survey_textarea
|
var: aap_survey_textarea
|
||||||
|
|
||||||
|
# Need to be careful here. While password fields
|
||||||
|
# are masked in AAP, during execution they can
|
||||||
|
# be displayed through examples like this:
|
||||||
- name: Example of 'password'
|
- name: Example of 'password'
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: aap_survey_password
|
var: aap_survey_password
|
||||||
@ -21,17 +24,29 @@
|
|||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: aap_survey_choose_single
|
var: aap_survey_choose_single
|
||||||
|
|
||||||
|
# Multiplechoice survey's come across as a list...
|
||||||
- name: Example of 'Multiple Choice (multiple select)'
|
- name: Example of 'Multiple Choice (multiple select)'
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: aap_survey_choose_multiple
|
var: aap_survey_choose_multiple
|
||||||
|
|
||||||
- name: Loop through selections and act if its the 'World'
|
# Here we loop through the choices, and if its 'World'
|
||||||
|
# we display a message:
|
||||||
|
- name: Loop through selections and act if its 'World'
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Hello {{ item }}"
|
msg: "Hello {{ item }}"
|
||||||
loop: "{{ aap_survey_choose_multiple }}"
|
loop: "{{ aap_survey_choose_multiple }}"
|
||||||
when:
|
when:
|
||||||
- "'World' in item"
|
- "'World' in item"
|
||||||
|
|
||||||
|
# Here we loop through the choices, and if its 'Two'
|
||||||
|
# we display a message:
|
||||||
|
- name: Loop through selections and act if its 'Two'
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "One... {{ item }}... Three..."
|
||||||
|
loop: "{{ aap_survey_choose_multiple }}"
|
||||||
|
when:
|
||||||
|
- "'Two' in item"
|
||||||
|
|
||||||
- name: Example of 'Integer'
|
- name: Example of 'Integer'
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: aap_survey_integer
|
var: aap_survey_integer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user