If the inventory hostnames are enough, you can do this:
{{ groups.SOME_GROUP | difference([inventory_hostname]) | list }}
On Friday, November 7, 2014 4:40:26 PM UTC+2, Dirk Louwers wrote:
>
> 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
>
--
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/fd8e1317-32c2-4182-8d2e-d96a04e1c93f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.