Hi,

I'm creating a role that supports multiple platforms and should handle
them transparently to the end user.

something like the following works fine for tasks/main.yml but doesn't
work for default/main.yml

- include: apt.yml
  when: ansible_pkg_mgr == 'apt'


What is the best way to set vars based on facts (while still
encapsulating it in a role)?

thanks!
Nusenu



-- 
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/54E7847F.1060305%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to