Skip to content

Commit 9961824

Browse files
committed
The cron module requires the user param when cron_file is specified,
even if `state` is `absent`, so just use the file module to remove the file instead.
1 parent c229361 commit 9961824

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tasks/gc.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
# gc -a support implemented in 2021/02, this task can be removed at some later date
44
- name: Remove per-repository garbage collection cron jobs
5-
cron:
6-
name: cvmfs_gc_{{ item.repository }}
7-
cron_file: ansible_cvmfs_gc
5+
file:
6+
path: /etc/cron.d/cvmfs_gc_{{ item.repository }}
87
state: absent
98
loop: "{{ cvmfs_repositories }}"
109

0 commit comments

Comments
 (0)