Last active
December 30, 2020 16:45
-
-
Save zeitounator/800629553ed221ec32d997bcbf9ffe4b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
gather_facts: false | |
vars: | |
test_values: | |
- no | |
- No | |
- "no" | |
- "No" | |
- 'no' | |
- 'No' | |
tasks: | |
- name: Show raw vars | |
debug: | |
var: item | |
loop: "{{ test_values }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ansible-playbook --version | |
ansible-playbook 2.10.3 | |
config file = None | |
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible | |
executable location = /usr/local/bin/ansible-playbook | |
python version = 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0] | |
$ ansible-playbook playbook.yml | |
PLAY [localhost] *********************************************************************************************************************************************************************************************************************** | |
TASK [Show raw vars] ******************************************************************************************************************************************************************************************************************* | |
ok: [localhost] => (item=False) => { | |
"ansible_loop_var": "item", | |
"item": false | |
} | |
ok: [localhost] => (item=False) => { | |
"ansible_loop_var": "item", | |
"item": false | |
} | |
ok: [localhost] => (item=no) => { | |
"ansible_loop_var": "item", | |
"item": "no" | |
} | |
ok: [localhost] => (item=No) => { | |
"ansible_loop_var": "item", | |
"item": "No" | |
} | |
ok: [localhost] => (item=no) => { | |
"ansible_loop_var": "item", | |
"item": "no" | |
} | |
ok: [localhost] => (item=No) => { | |
"ansible_loop_var": "item", | |
"item": "No" | |
} | |
PLAY RECAP ***************************************************************************************************************************************************************************************************************************** | |
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment