diff options
Diffstat (limited to 'lib/ansible/modules/windows/win_command.py')
-rw-r--r-- | lib/ansible/modules/windows/win_command.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/ansible/modules/windows/win_command.py b/lib/ansible/modules/windows/win_command.py index 2a131c4bc4..a42cb1b712 100644 --- a/lib/ansible/modules/windows/win_command.py +++ b/lib/ansible/modules/windows/win_command.py @@ -23,7 +23,7 @@ ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'core', 'version': '1.0'} -DOCUMENTATION = ''' +DOCUMENTATION = r''' --- module: win_command short_description: Executes a command on a remote Windows node @@ -59,24 +59,24 @@ author: - Matt Davis ''' -EXAMPLES = ''' +EXAMPLES = r''' # Example from Ansible Playbooks. - win_command: whoami register: whoami_out # Run the command only if the specified file does not exist. -- win_command: wbadmin -backupTarget:c:\\backup\\ creates=c:\\backup\\ +- win_command: wbadmin -backupTarget:C:\backup\ creates=C:\backup\ # You can also use the 'args' form to provide the options. This command -# will change the working directory to c:\\somedir\\ and will only run when -# c:\\backup\\ doesn't exist. -- win_command: wbadmin -backupTarget:c:\\backup\\ creates=c:\\backup\\ +# will change the working directory to C:\somedir\\ and will only run when +# C:\backup\ doesn't exist. +- win_command: wbadmin -backupTarget:C:\backup\ creates=C:\backup\ args: - chdir: c:\\somedir\\ - creates: c:\\backup\\ + chdir: C:\somedir\ + creates: C:\backup\ ''' -RETURN = ''' +RETURN = r''' msg: description: changed returned: always |