listupgrade: Fix removal order

This commit is contained in:
David Prevot 2023-04-18 09:47:03 +02:00
parent 7052b7bd1e
commit 37e6b14001

View file

@ -45,6 +45,12 @@
owner: root
group: root
- name: Remove old lisupgrade typo
cron:
name: "lisupgrade.sh"
cron_file: "listupgrade"
state: absent
- name: Enable listupgrade cron
cron:
name: "listupgrade.sh"
@ -58,12 +64,6 @@
month: "{{ listupgrade_cron_month }}"
state: "{{ listupgrade_cron_enabled | bool | ternary('present','absent') }}"
- name: Remove old lisupgrade typo
cron:
name: "lisupgrade.sh"
cron_file: "listupgrade"
state: absent
- name: old-kernel-autoremoval script is present
copy:
src: old-kernel-autoremoval.sh