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
55 lines
1.3 KiB
Python
55 lines
1.3 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright: (c) 2018, Ansible Project
|
|
# 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_chocolatey_feature
|
|
version_added: '2.7'
|
|
short_description: Manages Chocolatey features
|
|
description:
|
|
- Used to enable or disable features in Chocolatey.
|
|
options:
|
|
name:
|
|
description:
|
|
- The name of the feature to manage.
|
|
- Run C(choco.exe feature list) to get a list of features that can be
|
|
managed.
|
|
type: str
|
|
required: yes
|
|
state:
|
|
description:
|
|
- When C(disabled) then the feature will be disabled.
|
|
- When C(enabled) then the feature will be enabled.
|
|
type: str
|
|
choices: [ disabled, enabled ]
|
|
default: enabled
|
|
seealso:
|
|
- module: win_chocolatey
|
|
- module: win_chocolatey_config
|
|
- module: win_chocolatey_facts
|
|
- module: win_chocolatey_source
|
|
author:
|
|
- Jordan Borean (@jborean93)
|
|
'''
|
|
|
|
EXAMPLES = r'''
|
|
- name: Disable file checksum matching
|
|
win_chocolatey_feature:
|
|
name: checksumFiles
|
|
state: disabled
|
|
|
|
- name: Stop Chocolatey on the first package failure
|
|
win_chocolatey_feature:
|
|
name: stopOnFirstPackageFailure
|
|
state: enabled
|
|
'''
|
|
|
|
RETURN = r'''
|
|
'''
|