On 28. okt. 2016 20:53, Neil Watson wrote:
My intention is to pass it to the role not redefine it. What do you suggest?
You have a few options.
You don't need to pass them to the role, variables is global so you can
use them directly in the role, image.one.state and image.one.path.
Instead of using the image variable in the role, you can rename it to
img. But since variables is global in Ansible I would recommend to
prefix variables in a role with the role name, so you could use
test_image in the role.
--
Kai Stian Olstad
--
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/19fdc726-58a9-6836-71a3-a55fffae3b96%40olstad.com.
For more options, visit https://groups.google.com/d/optout.