I'm working on a small ansible project for myself.
I have a main.yml
in the defaults folder of my role.
Structure:
master-folder
`- roles
`- some_role
|- tasks
| `- main.yml
`- defaults
`- main.yml
Now...
In my some_variables.yml
I have a dictionary with 2 vars.
parent_var:
child_var: bob
child_two_var: bobby
in my main.yml task I want to get the key and value so (child_var: bob
) and write it to another file.
What I need help with, is with getting the key and value from the main.yml
in the defaults folder.