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
Hi,
I just started out experimenting with roles from Ansible Galaxy. I came across a role that required the hosts of all other instances of this server. Since I keep all of them in the same group I was wondering how I can pass all of a groups IP's to a role except for the machine's own. Please let me know if this question isn't clear.
Best,
Dirk
Hagai Kariti
unread,
Nov 10, 2014, 3:14:16 AM11/10/14
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
If the inventory hostnames are enough, you can do this:
{{ groups.SOME_GROUP | difference([inventory_hostname]) | list }}