From 3c8866abbdcf088ca6721d31416aa9dd7239ba91 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 18 May 2018 17:18:30 +0000 Subject: [PATCH] lets try some fact caching --- roles/ansible-server/templates/ansible.cfg.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/ansible-server/templates/ansible.cfg.j2 b/roles/ansible-server/templates/ansible.cfg.j2 index 3f553e758e..dc3e42c0b5 100644 --- a/roles/ansible-server/templates/ansible.cfg.j2 +++ b/roles/ansible-server/templates/ansible.cfg.j2 @@ -35,7 +35,7 @@ forks = 150 # smart - gather by default, but don't regather if already gathered # implicit - gather by default, turn off with gather_facts: False # explicit - do not gather by default, must say gather_facts: True -#gathering = implicit +gathering = smart # This only affects the gathering done by a play's gather_facts directive, # by default gathering retrieves all facts subsets @@ -241,7 +241,9 @@ filter_plugins = /srv/web/infra/ansible/filter_plugins:/usr/lib/python2.7/si # without having to talk to them in the same playbook run to get their # current IP information. #fact_caching = memory - +fact_caching = jsonfile +fact_caching_connection = /root/.ansible_facts_cache +fact_caching_timeout = 86400 # retry files # When a playbook fails by default a .retry file will be created in ~/