Ansible gather_facts not returning IP Address information

I’ve saw a few posts on here regarding this but couldn’t see one relating to my issue.
The gather_facts module is not returning ansible_default_ipv4 information so when I run my playbook I get an error like below.

When I run the command “ansible stapp01 -m gather_facts | grep ansible_default_ipv4” doesn’t return this value. It doesn’t exist on any server.

Yet running the command against localhost does.

Not sure how I can complete this task when gather_facts isn’t returning with the information I need? Any help would be appreciated.

Here is the task description as well.

I figured out the issue, not sure if this is meant to be part of this task or an oversight with prerequisites on the remote hosts for this lab.

I had to install the “iproute” package in it’s own playbook first, then remove the playbook.
image

And here are the results

2 Likes

Thank you @jordanmiller883 I was stuck on this task racking my brains at it.