diff --git a/lib/ansible/modules/system/cron.py b/lib/ansible/modules/system/cron.py index 5884fa82290..77877d57902 100644 --- a/lib/ansible/modules/system/cron.py +++ b/lib/ansible/modules/system/cron.py @@ -488,7 +488,7 @@ class CronTab(object): return "chown %s %s ; su '%s' -c '%s %s'" % (pipes.quote(self.user), pipes.quote(path), pipes.quote(self.user), CRONCMD, pipes.quote(path)) else: user = '-u %s' % pipes.quote(self.user) - return "%s %s %s" % (CRONCMD , pipes.quote(path), user) + return "%s %s %s" % (CRONCMD , user, pipes.quote(path))