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:
parent
8fc4eedde0
commit
2534143091
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue