Use the Mistral directory for storing the Ansible fact cache.

This aligns with how TripleO currently stores all Ansible data
in /var/lib/mistral/. Our documentation already recommends
running setfacl on that directory if an end-user wants to
access the files there.

Change-Id: I29d0a353cd0a0d28f36460a8e81003378884a5bd
Closes-Bug: #1850916
Resolves: rhbz#1772959
Signed-off-by: Luke Short <ekultails@gmail.com>
(cherry picked from commit d504caff6c)
This commit is contained in:
Luke Short 2019-11-12 15:44:36 -05:00
parent 8fc4eedde0
commit 2534143091
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def write_default_ansible_cfg(work_dir,
config.set('defaults', 'gathering', 'smart')
config.set('defaults', 'fact_caching', 'jsonfile')
config.set('defaults', 'fact_caching_connection',
'/var/tmp/ansible_fact_cache')
'/var/lib/mistral/ansible_fact_cache')
# Expire facts in the fact cache after 7200s (2h)
config.set('defaults', 'fact_caching_timeout', '7200')