Unexpected behavior with cron

318 views
Skip to first unread message

Michael van Santen

unread,
Jul 28, 2021, 9:52:31 AM7/28/21
to Ansible Project
Hey folks,
we recently performed an Upgrade of Ansible, or to be more specific an upgrade of AWX.
We went from AWX 17 to AWX 19.2.0 which also updated the Ansible version
After the Upgrade we get the following fatal error for every job about configuring cron:
"Will not manage /etc/crontab via cron_file, see documentation."

This is a configuration we get the error with:

- name: Remove specific cronjob
ansible.builtin.cron:
name: "specific cronjob"
user: "root"
cron_file: "/etc/crontab"
job: "some command &>/dev/null"
state: absent

We checked the documentation but our configuration seems to be okay, also it worked in the previous version.
Has anyone experienced this or has a guess what's going on?

Regards
Michael

Matt Martz

unread,
Jul 28, 2021, 9:59:55 AM7/28/21
to ansible...@googlegroups.com
You appear to be running the devel version of ansible-core, the unreleased 2.12.  That change has not been included in a published version yet.


The documentation reads:

> The assumption is that this file is exclusively managed by the module, do not use if the file contains multiple entries, NEVER use for /etc/crontab







Besuchen Sie uns Online auf basecom.de. Unsere aktuellen Stellenausschreibungen finden Sie unter wirsprecheninter.net.

basecom GmbH & Co. KG; Geschäftsführung: Manuel Wortmann; Sitz: Osnabrück, Hannoversche Str. 6-8, 49084 Osnabrück, AG Osnabrück HRA 200550;  Persönlich haftende Gesellschafter: basecom Beteiligungsgesellschaft mbH; Osnabrück HRB 200235

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4ce36b8a-fec5-4741-9259-542bcaa4ba4en%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages