Note
This cache plugin is part of ansible-core and included in all Ansible installations. In most cases, you can use the short plugin name jsonfile. However, we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.jsonfile for easy linking to the plugin documentation and to avoid conflicting with other collections that may have the same cache plugin name.
Parameter | Comments |
|---|---|
_prefix string | User defined prefix to use when creating the JSON files Configuration:
|
_timeout integer | Expiration timeout for the cache plugin data Default: Configuration:
|
_uri path / required | Path in which the cache plugin will save the JSON files Configuration:
|
Note
Configuration entries listed above for each entry type (Ansible variable, environment variable, and so on) have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up. The entry types are also ordered by precedence from low to high priority order. For example, an ansible.cfg entry (further up in the list) is overwritten by an Ansible variable (further down in the list).
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/jsonfile_cache.html