Dear all,

I'd like to map a role to a group of hosts with a specific operating system.

So far I read Applying ‘when’ to roles and includes 
<http://docs.ansible.com/ansible/playbooks_conditionals.html#applying-when-to-roles-and-includes>
 
and the module description of group_by 
<http://docs.ansible.com/ansible/group_by_module.html>. But I could not 
figure out how to use group_by to use a specific role only in cases where a 
variable matches an operating system. Could someone give an example, please?

Do I have to set some group_var first to use with group_by?

Kind regards,
Joerg

-- 
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/9ea0b46e-d70d-422e-95c2-48e3136a9a58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to