Hello,
There is nothing wrong with the lab - I am looking to understand why the vars.yml file has this specific syntax for web_config_files:
Is there any documentation I can read to understand why it goes:
- src:
dest:
Why is 'src' appear like a list with the dash in front of it - but 'dest' is not?
Hello @chis0
It is a list of dictionaries at top level of your example. It is dictionary with two keys ( src, dest ) at low level.
You can find original info about list and dictionary in chapter 2 of student guide. Look https://www.redhat.com/en/blog/ansible-lists-dictionaries-yaml for example for additional info
Good luck
Hello @chis0
It is a list of dictionaries at top level of your example. It is dictionary with two keys ( src, dest ) at low level.
You can find original info about list and dictionary in chapter 2 of student guide. Look https://www.redhat.com/en/blog/ansible-lists-dictionaries-yaml for example for additional info
Good luck
Hi ,
Thanks for providing this page, it is useful.
It makes sense. I am used to a language like PHP or Java and somehow I was forgetting to think like a programmer.
I see now it loops over the dictionary 'web_config_files' that has key(src),value(dest) pairs.
Thank you.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.