I am writing a playbook where I want to name a file including the 
ipaddress. However, my default ipv4 in the facts is empty, even though my 
interface is active and has a static ip. My target machine is CentOS 7.1, 
and my ansible version is 1.9.3.  

*"ansible_default_ipv4": {}, *
 "ansible_default_ipv6": {
            "address": "REDACTED", 
            "gateway": "REDACTED", 
            "interface": "enp5s0", 
--break--
 "ansible_enp5s0": {
            "active": true, 
            "device": "enp5s0", 
            "ipv4": {
*                "address": "REDACTED", *
                "netmask": "255.255.255.0", 
                "network": "REDACTED"

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4adec00b-274f-414b-bfee-53a5b80854a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to