Ok but what if I don't know the server name but only that it is an database
server in amsterdam?
Something like this, but then with the right syntax?
{{ groups["databaseserver"] | {{ hostvars["amsterdam"] }} | {{
ansible_eth0.ipv4.address }} }}
Op dinsdag 29 juli 2014 14:23:04 UTC+2 schreef Brian Coca:
>
> just do {{ city }}, if it is the 'current host', to access vars of other
> hosts {{ hostvars['server3'].city }}
>
--
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/0ec5b636-9383-4a80-9c51-28831b33406a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.