diff --git a/ansible.cfg b/ansible.cfg index c7bb9fd1..7a2e7b37 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -25,6 +25,12 @@ forks = 15 # Some SSH connection will take time timeout = 60 +# Enable fact_caching +gathering = smart +fact_caching = jsonfile +fact_caching_connection = ~/.cache/ansible/json/ +fact_caching_timeout = 86400 + [privilege_escalation] # Use sudo to get priviledge access