Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/files/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/files/tempfile.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZdd
lmZddlmZddlmZd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: tempfile
version_added: "2.3"
short_description: Creates temporary files and directories
description:
  - The C(tempfile) module creates temporary files and directories. C(mktemp) command takes different parameters on various systems, this module helps
    to avoid troubles related to that. Files/directories created by module are accessible only by creator. In case you need to make them world-accessible
    you need to use M(file) module.
  - For Windows targets, use the M(win_tempfile) module instead.
options:
  state:
    description:
      - Whether to create file or directory.
    type: str
    choices: [ directory, file ]
    default: file
  path:
    description:
      - Location where temporary file or directory should be created.
      - If path is not specified, the default system temporary directory will be used.
    type: path
  prefix:
    description:
      - Prefix of file/directory name created by module.
    type: str
    default: ansible.
  suffix:
    description:
      - Suffix of file/directory name created by module.
    type: str
    default: ""
seealso:
- module: file
- module: win_tempfile
author:
  - Krzysztof Magosa (@krzysztof-magosa)
sp
- name: create temporary build directory
  tempfile:
    state: directory
    suffix: build

- name: create temporary file
  tempfile:
    state: file
    suffix: temp
  register: tempfile_1

- name: use the registered var and the file module to remove the temporary file
  file:
    path: "{{ tempfile_1.path }}"
    state: absent
  when: tempfile_1.path is defined
sx
path:
  description: Path to created file or directory
  returned: success
  type: str
  sample: "/tmp/ansible.bMlvdk"
(tclose(tmkstemptmkdtemp(t
format_exc(t
AnsibleModule(t	to_nativecC`s[tdtdtdddddddg�d	tdd	�d
tdddd�dtdddd
���}y�|jddkr�td
|jd
d|jdd|jd	�\}}t|�nF|jddkrtd
|jd
d|jdd|jd	�}n|jdtd	|�Wn2tk
rV}|j	dt
|�dt��nXdS(Nt
argument_spectstatettypetstrtdefaulttfiletchoicest	directorytpathtprefixsansible.tsuffixttdirtchangedtmsgt	exception(RtdicttparamsR	RR
t	exit_jsontTruet	Exceptiont	fail_jsonR
R(tmodulethandleRte((sB/usr/lib/python2.7/site-packages/ansible/modules/files/tempfile.pytmainYs*!




t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtosRttempfileR	R
t	tracebackRtansible.module_utils.basicRtansible.module_utils._textR
R't__name__(((sB/usr/lib/python2.7/site-packages/ansible/modules/files/tempfile.pyt<module>s


'	

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]