Some checks failed
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos9) (push) Failing after 12s
42 lines
1023 B
YAML
42 lines
1023 B
YAML
---
|
|
- name: AAP and Surveys
|
|
hosts: all
|
|
gather_facts: false
|
|
become: false
|
|
|
|
tasks:
|
|
- name: Example of 'Text'
|
|
ansible.builtin.debug:
|
|
var: aap_survey_text
|
|
|
|
- name: Example of 'Textarea'
|
|
ansible.builtin.debug:
|
|
var: aap_survey_textarea
|
|
|
|
- name: Example of 'password'
|
|
ansible.builtin.debug:
|
|
var: aap_survey_password
|
|
|
|
- name: Example of 'Multiple Choice (single select)'
|
|
ansible.builtin.debug:
|
|
var: aap_survey_choose_single
|
|
|
|
- name: Example of 'Multiple Choice (multiple select)'
|
|
ansible.builtin.debug:
|
|
var: aap_survey_choose_multiple
|
|
|
|
- name: Loop through selections and act if its the 'World'
|
|
ansible.builtin.debug:
|
|
msg: "Hello {{ item }}"
|
|
loop: "{{ aap_survey_choose_multiple }}"
|
|
when:
|
|
- "'World' in item"
|
|
|
|
- name: Example of 'Integer'
|
|
ansible.builtin.debug:
|
|
var: aap_survey_integer
|
|
|
|
- name: Example of 'Float'
|
|
ansible.builtin.debug:
|
|
var: aap_survey_float
|