Hi all,

I have a role that has a dependency on another role, however by default, 
Ansible will execute the dependency first. In my case, I do not want this 
to happen. I don't want the role executed automatically at all. The role 
that is requiring this dependency will call it on its own within it's own 
tasks.  Right now, I am checking if a variable is defined, and if it is, 
then the tasks within the dependent role will run, but you still see the 
task line item in the playbook output. I would like to avoid it attempting 
to execute it altogether.

https://gist.github.com/lconnell/dfb1dc5383517b3bdd9c4832ae9027e2


-- 
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/82198539-1af4-4885-8254-ae9788b9d85b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to