ansible.builtin.jsonfile – JSON formatted files.

Note

This module is part of ansible-base and included in all Ansible installations. In most cases, you can use the short module name jsonfile even without specifying the collections: keyword. Despite that, we recommend you use the FQCN for easy linking to the module documentation and to avoid conflicting with other collections that may have the same module name.

New in version 1.9: of ansible.builtin

Synopsis

  • This cache uses JSON formatted, per host, files saved to the filesystem.

Parameters

Parameter Choices/Defaults Configuration Comments
_prefix
string
ini entries:

[defaults]
fact_caching_prefix = None

env:ANSIBLE_CACHE_PLUGIN_PREFIX
User defined prefix to use when creating the JSON files
_timeout
integer
Default:
86400
ini entries:

[defaults]
fact_caching_timeout = 86400

env:ANSIBLE_CACHE_PLUGIN_TIMEOUT
Expiration timeout for the cache plugin data
_uri
string / required
ini entries:

[defaults]
fact_caching_connection = None

env:ANSIBLE_CACHE_PLUGIN_CONNECTION
Path in which the cache plugin will save the JSON files

Authors

  • Ansible Core (@ansible-core)

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/ansible/builtin/jsonfile_cache.html