Is it possible to have condition statement on variable? What would be the best way to assign Variable based on inventory group? Below is the basic idea.
vars: epic: true when: inventory_hostname == groups.database or inventory_hostname == groups.apache vars: epic: false when: inventory_hostname != groups.database or inventory_hostname != groups.apache
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/587e9f49-f9e4-4310-afc3-137c0bd9c5dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAMFyvFjKjx1jixSdGP%2BMwWscAaBr4T1fKgiv%2Bk%3D%2B6DLnUU2XPA%40mail.gmail.com.