mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 07:05:27 +01:00
Added documentation and example for quiet option
This commit is contained in:
parent
1a4c2051e8
commit
fe7dd71bda
1 changed files with 11 additions and 1 deletions
|
|
@ -203,6 +203,11 @@ options:
|
||||||
description: Internal use only. See C(use_ssh_args) for ssh arg settings.
|
description: Internal use only. See C(use_ssh_args) for ssh arg settings.
|
||||||
type: str
|
type: str
|
||||||
required: false
|
required: false
|
||||||
|
quiet:
|
||||||
|
description:
|
||||||
|
- This specifies rsync quiet option which on yes/true suppresses the non-error messages
|
||||||
|
type: bool
|
||||||
|
default: no
|
||||||
|
|
||||||
notes:
|
notes:
|
||||||
- rsync must be installed on both the local and remote host.
|
- rsync must be installed on both the local and remote host.
|
||||||
|
|
@ -360,6 +365,12 @@ EXAMPLES = r'''
|
||||||
src: /tmp/localpath/
|
src: /tmp/localpath/
|
||||||
dest: /tmp/remotepath
|
dest: /tmp/remotepath
|
||||||
rsync_path: /usr/gnu/bin/rsync
|
rsync_path: /usr/gnu/bin/rsync
|
||||||
|
|
||||||
|
- name: Synchronization with --quiet option enabled
|
||||||
|
ansible.posix.synchronize:
|
||||||
|
src: some/relative/path
|
||||||
|
dest: /some/absolute/path
|
||||||
|
quiet: yes
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -623,7 +634,6 @@ def main():
|
||||||
else:
|
else:
|
||||||
(rc, out, err) = module.run_command(cmdstr)
|
(rc, out, err) = module.run_command(cmdstr)
|
||||||
|
|
||||||
# If quiet is true, supress the verbose output by suppressing changes but allowing errors
|
|
||||||
if quiet:
|
if quiet:
|
||||||
cmd.append('--quiet')
|
cmd.append('--quiet')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue