a )g@s\ddlmZmZmZeZdZddlZddlZddl m Z m Z ddl m Z Gddde ZdS))absolute_importdivisionprint_functiona  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|tdWdS1s40YdS)Nrutf-8encoding)cls)codecsopenjsonloadr)selffilepathfrB/usr/lib/python3.9/site-packages/ansible/plugins/cache/jsonfile.py_load9szCacheModule._loadc CsLtj|ddd(}|tj|tdddWdn1s>0YdS)Nwr r T)r Z sort_keysindent)rrwriterdumpsr)rvaluerrrrr_dump>szCacheModule._dumpN)__name__ __module__ __qualname____doc__rrrrrrr4sr)Z __future__rrrtypeZ __metaclass__Z DOCUMENTATIONrrZansible.parsing.ajsonrrZansible.plugins.cacherrrrrrs$