mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix for the cron module on FreeBSD
Apparently crontab on freebsd does not like the file path coming before the "-u username" portion of the command to install the crontab
This commit is contained in:
parent
4a3b762afe
commit
ceddc37f07
1 changed files with 3 additions and 3 deletions
|
@ -357,7 +357,7 @@ class CronTab(object):
|
|||
"""
|
||||
Return the command line for writing a crontab
|
||||
"""
|
||||
return "%s %s %s" % (CRONCMD, path, self._user_execute())
|
||||
return "%s %s %s" % (CRONCMD, self._user_execute(), path)
|
||||
|
||||
def _user_execute(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue