Server IP : 85.214.239.14 / Your IP : 3.21.98.79 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/ansible_collections/ansible/windows/plugins/modules/ |
Upload File : |
#!/usr/bin/python # coding: utf-8 -*- # Copyright: (c) 2017, Dag Wieers <dag@wieers.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r''' --- module: win_tempfile short_description: Creates temporary files and directories description: - Creates temporary files and directories. - For non-Windows targets, please use the M(ansible.builtin.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 default system temporary directory (%TEMP%) will be used. type: path default: '%TEMP%' aliases: [ dest ] 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 seealso: - module: ansible.builtin.tempfile author: - Dag Wieers (@dagwieers) ''' EXAMPLES = r""" - name: Create temporary build directory ansible.windows.win_tempfile: state: directory suffix: build - name: Create temporary file ansible.windows.win_tempfile: state: file suffix: temp """ RETURN = r''' path: description: The absolute path to the created file or directory. returned: success type: str sample: C:\Users\Administrator\AppData\Local\Temp\ansible.bMlvdk '''