iam getting the proper value if i use the Reference number of list in my
input file (3 is entry for EIL_adaptor).
Now if i try "ABC" instead of 3 it gives error
tasks:
- name: Set file as variable
include_vars:
file: "{{ input_file }}"
name: x
- name: Debug
debug:
msg: "{{ x['deliveries'][0]['releases'][0]['latest_RC25'][3]}}"
TASK [Debug]
***********************************************************************************************************************************************************
ok: [localhost] => {
"msg": {
"ABC": {
"file_name": "abc",
"md5": "",
"product_name": "ABC,
"product_number": "ABC 902 7815",
"release_candidate": "RC25",
"version": "25.1.0"
}
tasks:
- name: Set file as variable
include_vars:
file: "{{ input_file }}"
name: x
- name: Debug
debug:
msg: "{{ x['deliveries'][0]['releases'][0]['latest_RC25'][ABC]}}"
It gives an error.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/e48dc92c-48d7-4367-9194-5731c0216cac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.