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.
So the docs will appear at https://docs.ansible.com/ansible-core/devel/collections/ansible/builtin/cron_module.html 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 This change was made in https://github.com/ansible/ansible/pull/73591 to resolve https://github.com/ansible/ansible/issues/37355 On Wed, Jul 28, 2021 at 8:52 AM Michael van Santen <m.vansan...@basecom.de> wrote: > 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 > > <https://www.basecom.de/newsletter/?utm_source=mailfooter> > Besuchen Sie uns Online auf basecom.de <https://www.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 > <https://maps.google.com/maps?ll=52.264578,8.062005&z=12&t=m&hl=de-DE&gl=DE&mapclient=embed&daddr=basecom%20GmbH%20%26%20Co.%20KG%20Hannoversche%20Str.%206%20-%208%2049084%20Osnabr%C3%BCck@52.2645777,8.0620053>, > 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-project+unsubscr...@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 > <https://groups.google.com/d/msgid/ansible-project/4ce36b8a-fec5-4741-9259-542bcaa4ba4en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Matt Martz @sivel sivel.net -- 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-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v8vHvSTqJaHRf%3DSPDHMiDjDo4D%3DyV4B8rMWkFZuV9E%3DEg%40mail.gmail.com.