ho-ansible / ansible

Playbooks and config for remote administration
1 stars 0 forks source link

Refresh fact cache regularly #90

Open seanho00 opened 4 years ago

seanho00 commented 4 years ago

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.

seanho00 commented 4 years ago

Cron job must be at least as frequent as fact_cache_timeout (in seconds).