o nnhm@sPddlmZdZddlZddlZddlmZmZddlm Z Gddde Z dS)) annotationsa  name: jsonfile short_description: JSON formatted files. description: - This cache uses JSON formatted, per host, files saved to the filesystem. version_added: "1.9" author: Ansible Core (@ansible-core) options: _uri: required: True description: - Path in which the cache plugin will save the JSON files env: - name: ANSIBLE_CACHE_PLUGIN_CONNECTION ini: - key: fact_caching_connection section: defaults type: path _prefix: description: User defined prefix to use when creating the JSON files env: - name: ANSIBLE_CACHE_PLUGIN_PREFIX ini: - key: fact_caching_prefix section: defaults _timeout: default: 86400 description: Expiration timeout for the cache plugin data env: - name: ANSIBLE_CACHE_PLUGIN_TIMEOUT ini: - key: fact_caching_timeout section: defaults type: integer N)AnsibleJSONEncoderAnsibleJSONDecoder)BaseFileCacheModulec@s eZdZdZddZddZdS) CacheModulez0 A caching module backed by json files. cCsBtj|ddd}tj|tdWdS1swYdS)Nrutf-8encoding)cls)codecsopenjsonloadr)selffilepathfrI/usr/local/lib/python3.10/dist-packages/ansible/plugins/cache/jsonfile.py_load7s $zCacheModule._loadc CsNtj|ddd}|tj|tdddWddS1s wYdS)Nwrr T)r sort_keysindent)r r writerdumpsr)rvaluerrrrr_dump<s"zCacheModule._dumpN)__name__ __module__ __qualname____doc__rrrrrrr2s r) __future__r DOCUMENTATIONr ransible.parsing.ajsonrransible.plugins.cacherrrrrrs $