So let's say I have an inventory like this:

[cars]
honda
volvo
saab

[motos]
aprilla
moto-guzzi

and in my playbook I am referring to motorcycles only

- hosts: motos

>From what I understand, group_names returns the groups defined in the
inventory. How can I get a list of the host groups I am using in the
playbook?

-- 
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/CAHEKYV67-5q9cX70mUHGHbkhv0P039STFeDB8%3Du-V0k4zvJFuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to