�
�Udac @` s� d d l m Z m Z m Z e Z d Z d d l Z d d l Z d d l m
Z
m Z d d l m
Z
d e
f d � � YZ d S( i ( t absolute_importt divisiont print_functions�
cache: 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
_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( t AnsibleJSONEncodert AnsibleJSONDecoder( t BaseFileCacheModulet CacheModulec B` s e Z d Z d � Z d � Z RS( s0
A caching module backed by json files.
c C` s8 t j | d d d �� } t j | d t �SWd QXd S( Nt rt encodings utf-8t cls( t codecst opent jsont loadR ( t selft filepatht f( ( sB /usr/lib/python2.7/site-packages/ansible/plugins/cache/jsonfile.pyt _load8 s c
C` sM t j | d d d ��/ } | j t j | d t d t d d �� Wd QXd S( Nt wR s utf-8R t sort_keyst indenti ( R
R t writeR t dumpsR t True( R t valueR R ( ( sB /usr/lib/python2.7/site-packages/ansible/plugins/cache/jsonfile.pyt _dump= s ( t __name__t
__module__t __doc__R R ( ( ( sB /usr/lib/python2.7/site-packages/ansible/plugins/cache/jsonfile.pyR 3 s ( t
__future__R R R t typet
__metaclass__t
DOCUMENTATIONR
R t ansible.parsing.ajsonR R t ansible.plugins.cacheR R ( ( ( sB /usr/lib/python2.7/site-packages/ansible/plugins/cache/jsonfile.pyt <module> s #
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]