Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
playbook, inventory, and group_names
37 views
Skip to first unread message
Mauricio Tavares
unread,
Mar 29, 2019, 1:57:39 PM
3/29/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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?
Kai Stian Olstad
unread,
Mar 29, 2019, 2:16:39 PM
3/29/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
You can't ref this thread
https://groups.google.com/forum/#!msg/ansible-project/WntLXpN_gtg/HQ7PnjLZBAAJ
--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages