From 19a961c118f37282602effdb302c0275aceb5b5e Mon Sep 17 00:00:00 2001 From: Mandar Kulkarni Date: Mon, 12 Jul 2021 09:13:16 -0700 Subject: [PATCH] Added documentation and example for quiet option --- plugins/modules/synchronize.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/modules/synchronize.py b/plugins/modules/synchronize.py index 393b014..23db5fb 100644 --- a/plugins/modules/synchronize.py +++ b/plugins/modules/synchronize.py @@ -186,6 +186,11 @@ options: type: bool default: true 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. @@ -343,6 +348,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 ''' @@ -610,7 +621,6 @@ def main(): else: (rc, out, err) = module.run_command(cmdstr) - # If quiet is true, supress the verbose output by suppressing changes but allowing errors if quiet: cmd.append('--quiet')