Run setup module on all hosts, in a cron job on the ansible host.
When fact cache for a host becomes out of date, ansible no longer makes facts for that host available in plays run for other hosts. E.g., wireguard config needs to lookup ansible_default_ipv4 for all its peers.
Run
setup
module on all hosts, in a cron job on the ansible host.When fact cache for a host becomes out of date, ansible no longer makes facts for that host available in plays run for other hosts. E.g., wireguard config needs to lookup
ansible_default_ipv4
for all its peers.