On 21.11.2019 11:29, Karther wrote:
I want when i deploy this template,on my host 1 {{ my_ip_addr_host }} get
value 10.10.10.1 and when i deploy this template on my host 2 {{
my_ip_addr_host }} get value 10.10.10.2

This is covered in Ansible documentation and called host_vars
https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html

--
Kai Stian Olstad

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9a8aaf7359621cac145c3ff7ee206563%40olstad.com.

Reply via email to