mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix conflict and typos (#18831)
This commit is contained in:
parent
2405c0bbef
commit
75bcec0ef5
1 changed files with 30 additions and 25 deletions
|
@ -69,34 +69,39 @@ notes:
|
||||||
- Works on Windows 7, Windows 8, Windows Server 2k8, and Windows Server 2k12
|
- Works on Windows 7, Windows 8, Windows Server 2k8, and Windows Server 2k12
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = r'''
|
||||||
# Syncs the contents of one directory to another.
|
- name: Sync the contents of one directory to another
|
||||||
$ ansible -i hosts all -m win_robocopy -a "src=C:\\DirectoryOne dest=C:\\DirectoryTwo"
|
|
||||||
|
|
||||||
# Sync the contents of one directory to another, including subdirectories.
|
|
||||||
$ ansible -i hosts all -m win_robocopy -a "src=C:\\DirectoryOne dest=C:\\DirectoryTwo recurse=true"
|
|
||||||
|
|
||||||
# Sync the contents of one directory to another, and remove any files/directories found in destination that do not exist in the source.
|
|
||||||
$ ansible -i hosts all -m win_robocopy -a "src=C:\\DirectoryOne dest=C:\\DirectoryTwo purge=true"
|
|
||||||
|
|
||||||
# Sample sync
|
|
||||||
---
|
|
||||||
- name: Sync Two Directories
|
|
||||||
win_robocopy:
|
win_robocopy:
|
||||||
src: "C:\\DirectoryOne
|
src: C:\DirectoryOne
|
||||||
dest: "C:\\DirectoryTwo"
|
dest: C:\DirectoryTwo
|
||||||
recurse: true
|
|
||||||
purge: true
|
|
||||||
|
|
||||||
---
|
- name: Sync the contents of one directory to another, including subdirectories
|
||||||
- name: Sync Two Directories
|
|
||||||
win_robocopy:
|
win_robocopy:
|
||||||
src: "C:\\DirectoryOne
|
src: C:\DirectoryOne
|
||||||
dest: "C:\\DirectoryTwo"
|
dest: C:\DirectoryTwo
|
||||||
recurse: true
|
recurse: True
|
||||||
purge: true
|
|
||||||
flags: '/XD SOME_DIR /XF SOME_FILE /MT:32'
|
- name: Sync the contents of one directory to another, and remove any files/directories found in destination that do not exist in the source
|
||||||
"""
|
win_robocopy:
|
||||||
|
src: C:\DirectoryOne
|
||||||
|
dest: C:\DirectoryTwo
|
||||||
|
purge: True
|
||||||
|
|
||||||
|
- name: Sync content in recursive mode, removing any files/directories found in destination that do not exist in the source
|
||||||
|
win_robocopy:
|
||||||
|
src: C:\DirectoryOne
|
||||||
|
dest: C:\DirectoryTwo
|
||||||
|
recurse: True
|
||||||
|
purge: True
|
||||||
|
|
||||||
|
- name: Sync Two Directories in recursive and purging mode, specifying additional special flags
|
||||||
|
win_robocopy:
|
||||||
|
src: C:\DirectoryOne
|
||||||
|
dest: C:\DirectoryTwo
|
||||||
|
recurse: True
|
||||||
|
purge: True
|
||||||
|
flags: /XD SOME_DIR /XF SOME_FILE /MT:32
|
||||||
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
src:
|
src:
|
||||||
|
|
Loading…
Reference in a new issue