Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Implement fact caching
Browse files Browse the repository at this point in the history
Fact caching will improve general Ansible performance by default. This
implementation will use the JSONfile configuration because it has no new
dependencies and will provide a similar performance gain as noted through the
use of Redis.

Notes:
* The facts can purged or read by interacting with the default
  JSON file.
* The caching behavior can be turned off by removing the parameter
  fact_caching from the ansible.cfg file.

Change-Id: I007a3bdbaaf30c2ccb4cf42df014ff0d6a943182
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
  • Loading branch information
strider committed May 5, 2017
1 parent d431130 commit 4252f26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible.cfg
Expand Up @@ -5,6 +5,10 @@ callback_whitelist = profile_tasks
host_key_checking = False
force_color = 1
pipelining = True
gathering = smart
fact_caching = jsonfile
fact_caching_connection = tmp/
fact_caching_timeout = 7200

# Attempt to load custom modules whether it's installed system-wide or from a virtual environment
callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks:$VIRTUAL_ENV/lib/python2.7/site-packages/ara/plugins/callbacks:/usr/local/lib/python2.7/dist-packages/ara/plugins/callbacks
Expand Down

0 comments on commit 4252f26

Please sign in to comment.