[root@dbc-server-554 ansible]# cat facttest.yml --- - name: print facts variable hosts: all tasks: - name: print facts variable debug: msg: "The default IPV4 address is {{ ansible_default_ipv4.address }}" [root@dbc-server-554 ansible]# ansible-playbook -i host_v3 facttest.yml PLA...
failed: [rockserver2.lan] (item=topology.json) => {"changed": false, "failed": true, "item": "topology.json", "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'ansible_default_ipv4'"} The machine in question has an IP address, has a default route, has working DNS...