From 4c6515e29995e0d2b5cc121129806443a2c8ee82 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 15 Jan 2016 15:00:40 -0500 Subject: [PATCH] reverse order of cron commands does not affect linux but fixes issue with busybox caring about order fixes #2807 --- lib/ansible/modules/system/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/cron.py b/lib/ansible/modules/system/cron.py index d1ead7b1084..dfe5b30e5b1 100644 --- a/lib/ansible/modules/system/cron.py +++ b/lib/ansible/modules/system/cron.py @@ -380,7 +380,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 , user, pipes.quote(path)) + return "%s %s %s" % (CRONCMD , pipes.quote(path), user)