summaryrefslogtreecommitdiff
path: root/changelogs/fragments
diff options
context:
space:
mode:
authorelara-leitstellentechnik <elara-leitstellentechnik@users.noreply.github.com>2021-05-13 19:38:13 +0200
committerGitHub <noreply@github.com>2021-05-13 13:38:13 -0400
commitc6ac9de67b50c88a3fe2a6ce6fee8bc25c1c99a3 (patch)
treef1f9b8d59c8fed0cf944d5dfd30e42415f124612 /changelogs/fragments
parent1906d75907e36b84609dd860e34cd1563a13f37a (diff)
downloadansible-c6ac9de67b50c88a3fe2a6ce6fee8bc25c1c99a3.tar.gz
Do not remove non-empty cron tabs (#74497)
* Only remove crontabs if they are empty * Add integration test to ensure system cron tab doesn't get removed. Increase cron integration tests separation. * Also detect crontab which only contains whitespace as empty. * cron integration test: Adjust system crontab path to be distribution specific. Co-authored-by: Fabian Klemp <fabian.klemp@elara-gmbh.de>
Diffstat (limited to 'changelogs/fragments')
-rw-r--r--changelogs/fragments/74497-keep-non-empty-crontabs.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/changelogs/fragments/74497-keep-non-empty-crontabs.yml b/changelogs/fragments/74497-keep-non-empty-crontabs.yml
new file mode 100644
index 0000000000..2e88e6b54c
--- /dev/null
+++ b/changelogs/fragments/74497-keep-non-empty-crontabs.yml
@@ -0,0 +1,3 @@
+bugfixes:
+ - ansible.builtin.cron - Keep non-empty crontabs, when removing cron jobs
+ (https://github.com/ansible/ansible/pull/74497).