mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Added documentation and example for quiet option
This commit is contained in:
parent
6e96120b14
commit
112fe9e9d0
1 changed files with 11 additions and 1 deletions
|
|
@ -184,6 +184,11 @@ options:
|
|||
type: bool
|
||||
default: yes
|
||||
version_added: '1.3.0'
|
||||
quiet:
|
||||
description:
|
||||
- This specifies rsync quiet option which on yes/true suppresses the non-error messages
|
||||
type: bool
|
||||
default: no
|
||||
|
||||
notes:
|
||||
- rsync must be installed on both the local and remote host.
|
||||
|
|
@ -341,6 +346,12 @@ EXAMPLES = r'''
|
|||
src: /tmp/localpath/
|
||||
dest: /tmp/remotepath
|
||||
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
|
||||
'''
|
||||
|
||||
|
||||
|
|
@ -608,7 +619,6 @@ def main():
|
|||
else:
|
||||
(rc, out, err) = module.run_command(cmd)
|
||||
|
||||
# If quiet is true, supress the verbose output by suppressing changes but allowing errors
|
||||
if quiet:
|
||||
cmd.append('--quiet')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue