Hi folks,
I’m facing an issue with roles call in plays when passing complex var. I want to find a way to pass variable by reference like so:
`
#group_vars/python-app/fooapi.yml
fooapi:
uno: 1
dos: 2
`
#group_vars/python-app/barapi.yml
fooapi:
uno: 1000
dos: 2000
`
`
`
#play.yml
- hosts: python-app
roles: - { role: python, app: fooapi}
- { role: python, app: barapi}
`
`
#roles/python/tasks/main.yml
- debug: var=app
`
This is maybe a bad practice but if we found a solution, this is a very usefull and nice way to do what I want to do.
Thank you for your help