Helo all,


 I wonder if I can get some help with referencing facts in template.

I ma not able to reference:


 every time I run my play, the file on the host shows:


carp0_ip=””


and the same line in my template:


 carp0_ip=”{{ ansible_carp0[“ipv4”][“address”] }}”


this is the snippet from running: ansible server -m setup


 "ansible_carp0": {
"device": "carp0", 
"flags": [
"UP", 
"BROADCAST", 
"RUNNING", 
"SI
"ipv4": [
{
"address": "10.0.0.33", 
"broadcast": "10.0.0.255", 
"netmask": "255.255.255.0", 
"network": "10.0.0.0"
}
], 
"ipv6": [
{
"address": "fe80::200:5eff:fe00:101%carp0", 
"prefix": "64", 
"scope": "0x4"
}
], 
"macaddress": "00:00:5e:00:01:04", 
"mtu": "1500", 
"status": "master", 
"type": "unknown"
}, 


 host where ansible is installed: CentOS 6.5

ansible version: 1.6.6

host I'm pulling facts from: OpenBSD 5.5



Thank you


 Greg

-- 
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/d4820ae0-eae3-4ad6-aef8-b1570a27d11f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to