Switch fact caching connection

For the jsonfile plugin, the path should be a local directory. This
directory needs to be readable by any user that would execute the
playbook. Since /var/lib/mistral may not be world readable, we should
use something in the user's home dir instead.  This changes it to
~/.ansible/fact_cache

Change-Id: I8fa7127cf9ebb51ce4f090670ec2a45bcfcf77e8
Closes-Bug: #1873480
This commit is contained in:
Alex Schultz 2020-04-27 07:38:55 -06:00
parent 013cf6cc68
commit ffb1ac86a4
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,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/lib/mistral/ansible_fact_cache')
'~/.ansible/fact_cache')
# Set the pull interval to lower CPU overhead
config.set('defaults', 'internal_poll_interval', '0.05')