mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
* Windows: Add missing parameter types and doc fixes This PR includes: - Adding missing parameter types - Various documentation fixes * Update lib/ansible/modules/windows/win_copy.py Co-Authored-By: dagwieers <dag@wieers.com> * Update lib/ansible/modules/windows/win_credential.py Co-Authored-By: dagwieers <dag@wieers.com> * Update lib/ansible/modules/windows/win_domain_computer.py Co-Authored-By: dagwieers <dag@wieers.com> * Update lib/ansible/modules/windows/win_domain_user.py Co-Authored-By: dagwieers <dag@wieers.com> * Update lib/ansible/modules/windows/win_environment.py Co-Authored-By: dagwieers <dag@wieers.com> * Update lib/ansible/modules/windows/win_psexec.py Co-Authored-By: dagwieers <dag@wieers.com> * Update lib/ansible/modules/windows/win_uri.py Co-Authored-By: dagwieers <dag@wieers.com> * Update lib/ansible/modules/windows/win_wait_for.py Co-Authored-By: dagwieers <dag@wieers.com> * Ensure docstrings are raw strings
66 lines
1.6 KiB
Python
66 lines
1.6 KiB
Python
#!/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)
|
|
|
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|
'status': ['preview'],
|
|
'supported_by': 'community'}
|
|
|
|
DOCUMENTATION = r'''
|
|
---
|
|
module: win_tempfile
|
|
version_added: "2.3"
|
|
short_description: Creates temporary files and directories
|
|
description:
|
|
- Creates temporary files and directories.
|
|
- For non-Windows targets, please use the M(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%'
|
|
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: tempfile
|
|
author:
|
|
- Dag Wieers (@dagwieers)
|
|
'''
|
|
|
|
EXAMPLES = r"""
|
|
- name: Create temporary build directory
|
|
win_tempfile:
|
|
state: directory
|
|
suffix: build
|
|
|
|
- name: Create temporary file
|
|
win_tempfile:
|
|
state: file
|
|
suffix: temp
|
|
"""
|
|
|
|
RETURN = r'''
|
|
path:
|
|
description: Path to created file or directory.
|
|
returned: success
|
|
type: str
|
|
sample: C:\Users\Administrator\AppData\Local\Temp\ansible.bMlvdk
|
|
'''
|