From 9ba5a438a88d2f78867bf7d015d264b088a40a9b Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 5 Aug 2015 11:54:12 -0700 Subject: [PATCH] Allow mode as a synchronize parameter (handled in action plugin) --- lib/ansible/modules/files/synchronize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/files/synchronize.py b/lib/ansible/modules/files/synchronize.py index 08578056413..a5e3b476495 100644 --- a/lib/ansible/modules/files/synchronize.py +++ b/lib/ansible/modules/files/synchronize.py @@ -252,6 +252,7 @@ def main(): ssh_args = dict(type='str'), partial = dict(default='no', type='bool'), verify_host = dict(default='no', type='bool'), + mode = dict(default='push', choices=['push', 'pull']), ), supports_check_mode = True )