Hello, Is it possible to use variables defined in a ansible host file for a template? Lets say this is the host file:
[webservers] server1 city=amsterdam server2 city=london [databaseserver] server3 city=amsterdam server4 city=london How can I use for instance the ip address of server3 which is in group databaseservers in amsterdam? Is this possible? I would like to use this to fill iptables with ip addresses depending on group and city. Regards, Peter -- 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/e5053619-9882-4de7-ab8f-0905d7ec3912%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
