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 :)
--
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/e54ca0e8-9052-42d6-af42-d4e5f2c45f6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.