diff --git a/zuul/ansible/action/synchronize.py b/zuul/ansible/action/synchronize.py index ff514ac734..75fd45f92f 100644 --- a/zuul/ansible/action/synchronize.py +++ b/zuul/ansible/action/synchronize.py @@ -26,6 +26,8 @@ class ActionModule(synchronize.ActionModule): dest = self._task.args.get('dest', None) mode = self._task.args.get('mode', 'push') + if 'rsync_opts' not in self._task.args: + self._task.args['rsync_opts'] = [] if '--safe-links' not in self._task.args['rsync_opts']: self._task.args['rsync_opts'].append('--safe-links')