403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.11/site-packages/ansible/modules/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/modules/__pycache__/tempfile.cpython-311.pyc
�

���c�
���ddlmZmZmZeZdZdZdZddl	m
Z
ddlmZm
Z
ddlmZddlmZdd	lmZd
�Zedkre��dSdS)
�)�absolute_import�division�print_functiona�
---
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(ansible.builtin.file) module.
  - For Windows targets, use the M(ansible.windows.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: ""
extends_documentation_fragment: action_common_attributes
attributes:
    check_mode:
        support: none
    diff_mode:
        support: none
    platform:
        platforms: posix
seealso:
- module: ansible.builtin.file
- module: ansible.windows.win_tempfile
author:
  - Krzysztof Magosa (@krzysztof-magosa)
a�
- name: Create temporary build directory
  ansible.builtin.tempfile:
    state: directory
    suffix: build

- name: Create temporary file
  ansible.builtin.tempfile:
    state: file
    suffix: temp
  register: tempfile_1

- name: Use the registered var and the file module to remove the temporary file
  ansible.builtin.file:
    path: "{{ tempfile_1.path }}"
    state: absent
  when: tempfile_1.path is defined
zy
path:
  description: Path to created file or directory.
  returned: success
  type: str
  sample: "/tmp/ansible.bMlvdk"
)�close)�mkstemp�mkdtemp)�
format_exc)�
AnsibleModule)�	to_nativec��tttddddg���td���tdd���tdd	����
�����}	|jddkrFt|jd
|jd|jd���\}}t	|��n3t|jd
|jd|jd���}|�d|���dS#t$r;}|�t|��t�����Yd}~dSd}~wwxYw)N�str�file�	directory)�type�default�choices�path)rzansible.)rr�)�stater�prefix�suffix)�
argument_specrrr)rr�dirT)�changedr)�msg�	exception)r
�dict�paramsrrr�	exit_json�	Exception�	fail_jsonrr	)�module�handler�es    �=/usr/lib/python3.11/site-packages/ansible/modules/tempfile.py�mainr&]su��
���E�6�F�K�;P�Q�Q�Q��6�"�"�"��U�J�7�7�7��U�B�/�/�/�	
�
�
����F�C��=��!�V�+�+�"��}�X�.��}�X�.��M�&�)����L�F�D�

�&�M�M�M�M���}�X�.��}�X�.��M�&�)����D�	����D��1�1�1�1�1���C�C�C����Y�q�\�\�Z�\�\��B�B�B�B�B�B�B�B�B�����C���s�!B!D�
E	�0E�E	�__main__N)�
__future__rrrr�
__metaclass__�
DOCUMENTATION�EXAMPLES�RETURN�osr�tempfilerr�	tracebackr	�ansible.module_utils.basicr
�ansible.module_utils._textrr&�__name__��r%�<module>r5s���A�@�@�@�@�@�@�@�@�@��
�-�
�^��&
��������%�%�%�%�%�%�%�%� � � � � � �4�4�4�4�4�4�0�0�0�0�0�0�C�C�C�<�z����D�F�F�F�F�F��r4

Youez - 2016 - github.com/yon3zu
LinuXploit