mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Pep8 fixes for Windows module (#24349)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
86bf27511c
commit
9c5b55232c
12 changed files with 15 additions and 35 deletions
|
@ -23,7 +23,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
'supported_by': 'core'}
|
||||
|
||||
|
||||
DOCUMENTATION='''
|
||||
DOCUMENTATION = '''
|
||||
module: win_disk_image
|
||||
short_description: Manage ISO/VHD/VHDX mounts on Windows hosts
|
||||
version_added: 2.3
|
||||
|
@ -47,7 +47,7 @@ author:
|
|||
- Matt Davis (@nitzmahone)
|
||||
'''
|
||||
|
||||
RETURN=r'''
|
||||
RETURN = r'''
|
||||
mount_path:
|
||||
description: filesystem path where the target image is mounted
|
||||
returned: when C(state) is C(present)
|
||||
|
@ -55,7 +55,7 @@ mount_path:
|
|||
sample: F:\
|
||||
'''
|
||||
|
||||
EXAMPLES=r'''
|
||||
EXAMPLES = r'''
|
||||
# ensure an iso is mounted
|
||||
- win_disk_image:
|
||||
image_path: C:\install.iso
|
||||
|
@ -74,4 +74,3 @@ EXAMPLES=r'''
|
|||
state: absent
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ notes:
|
|||
author: "Matt Davis (@nitzmahone)"
|
||||
'''
|
||||
|
||||
EXAMPLES=r'''
|
||||
EXAMPLES = r'''
|
||||
# set a single address on the adapter named Ethernet
|
||||
- win_dns_client:
|
||||
adapter_names: Ethernet
|
||||
|
@ -68,6 +68,6 @@ EXAMPLES=r'''
|
|||
ipv4_addresses: []
|
||||
'''
|
||||
|
||||
RETURN='''
|
||||
RETURN = '''
|
||||
|
||||
'''
|
||||
|
|
|
@ -23,7 +23,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
'supported_by': 'core'}
|
||||
|
||||
|
||||
DOCUMENTATION='''
|
||||
DOCUMENTATION = '''
|
||||
module: win_domain
|
||||
short_description: Ensures the existence of a Windows domain.
|
||||
version_added: 2.3
|
||||
|
@ -43,7 +43,7 @@ author:
|
|||
- Matt Davis (@nitzmahone)
|
||||
'''
|
||||
|
||||
RETURN='''
|
||||
RETURN = '''
|
||||
reboot_required:
|
||||
description: True if changes were made that require a reboot.
|
||||
returned: always
|
||||
|
@ -52,7 +52,7 @@ reboot_required:
|
|||
|
||||
'''
|
||||
|
||||
EXAMPLES=r'''
|
||||
EXAMPLES = r'''
|
||||
# ensure the named domain is reachable from the target host; if not, create the domain in a new forest residing on the target host
|
||||
- win_domain:
|
||||
dns_domain_name: ansible.vagrant
|
||||
|
|
|
@ -23,7 +23,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
'supported_by': 'core'}
|
||||
|
||||
|
||||
DOCUMENTATION='''
|
||||
DOCUMENTATION = '''
|
||||
module: win_domain_controller
|
||||
short_description: Manage domain controller/member server state for a Windows host
|
||||
version_added: 2.3
|
||||
|
@ -58,7 +58,7 @@ author:
|
|||
- Matt Davis (@nitzmahone)
|
||||
'''
|
||||
|
||||
RETURN='''
|
||||
RETURN = '''
|
||||
reboot_required:
|
||||
description: True if changes were made that require a reboot.
|
||||
returned: always
|
||||
|
@ -67,7 +67,7 @@ reboot_required:
|
|||
|
||||
'''
|
||||
|
||||
EXAMPLES=r'''
|
||||
EXAMPLES = r'''
|
||||
# ensure a server is a domain controller
|
||||
- hosts: winclient
|
||||
gather_facts: no
|
||||
|
@ -97,4 +97,3 @@ EXAMPLES=r'''
|
|||
log_path: c:\ansible_win_domain_controller.txt
|
||||
|
||||
'''
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
'supported_by': 'core'}
|
||||
|
||||
|
||||
DOCUMENTATION='''
|
||||
DOCUMENTATION = '''
|
||||
module: win_domain_membership
|
||||
short_description: Manage domain/workgroup membership for a Windows host
|
||||
version_added: 2.3
|
||||
|
@ -58,7 +58,7 @@ author:
|
|||
- Matt Davis (@nitzmahone)
|
||||
'''
|
||||
|
||||
RETURN='''
|
||||
RETURN = '''
|
||||
reboot_required:
|
||||
description: True if changes were made that require a reboot.
|
||||
returned: always
|
||||
|
@ -66,7 +66,7 @@ reboot_required:
|
|||
sample: true
|
||||
'''
|
||||
|
||||
EXAMPLES='''
|
||||
EXAMPLES = '''
|
||||
|
||||
# host should be a member of domain ansible.vagrant; module will ensure the hostname is mydomainclient
|
||||
# and will use the passed credentials to join domain if necessary.
|
||||
|
|
|
@ -91,4 +91,3 @@ EXAMPLES = r'''
|
|||
name: TestVariable
|
||||
level: user
|
||||
'''
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
'supported_by': 'community'}
|
||||
|
||||
|
||||
|
||||
DOCUMENTATION = r'''
|
||||
---
|
||||
module: win_iis_webapppool
|
||||
|
@ -151,4 +150,3 @@ info:
|
|||
type: string
|
||||
sample: "Started"
|
||||
'''
|
||||
|
||||
|
|
|
@ -96,4 +96,3 @@ wait:
|
|||
type: boolean
|
||||
sample: false
|
||||
'''
|
||||
|
||||
|
|
|
@ -82,4 +82,3 @@ EXAMPLES = r'''
|
|||
path: C:\7z920-x64.msi
|
||||
state: absent
|
||||
'''
|
||||
|
||||
|
|
|
@ -52,4 +52,3 @@ EXAMPLES = r'''
|
|||
- win_ping:
|
||||
data: crash
|
||||
'''
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
#coding: utf-8 -*-
|
||||
# coding: utf-8 -*-
|
||||
|
||||
# (c) 2017 Dag Wieers <dag@wieers.com>
|
||||
#
|
||||
|
@ -71,4 +71,3 @@ path:
|
|||
type: string
|
||||
sample: C:\Users\Administrator\AppData\Local\Temp\ansible.bMlvdk
|
||||
'''
|
||||
|
||||
|
|
|
@ -766,17 +766,6 @@ lib/ansible/modules/web_infrastructure/ansible_tower/tower_team.py
|
|||
lib/ansible/modules/web_infrastructure/ansible_tower/tower_user.py
|
||||
lib/ansible/modules/web_infrastructure/ejabberd_user.py
|
||||
lib/ansible/modules/web_infrastructure/jboss.py
|
||||
lib/ansible/modules/windows/win_disk_image.py
|
||||
lib/ansible/modules/windows/win_dns_client.py
|
||||
lib/ansible/modules/windows/win_domain.py
|
||||
lib/ansible/modules/windows/win_domain_controller.py
|
||||
lib/ansible/modules/windows/win_domain_membership.py
|
||||
lib/ansible/modules/windows/win_environment.py
|
||||
lib/ansible/modules/windows/win_iis_webapppool.py
|
||||
lib/ansible/modules/windows/win_msg.py
|
||||
lib/ansible/modules/windows/win_msi.py
|
||||
lib/ansible/modules/windows/win_ping.py
|
||||
lib/ansible/modules/windows/win_tempfile.py
|
||||
lib/ansible/parsing/dataloader.py
|
||||
lib/ansible/parsing/mod_args.py
|
||||
lib/ansible/parsing/quoting.py
|
||||
|
|
Loading…
Reference in a new issue