listupgrade: Fix removal order
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2683|3|2680|2|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/453//ansiblelint">Evolix » ansible-roles » unstable #453</a>
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
David Prevot 2023-04-18 09:47:03 +02:00
parent aa2593f34c
commit 30bd72614d

View file

@ -45,6 +45,12 @@
owner: root
group: root
- name: Remove old lisupgrade typo
ansible.builtin.cron:
name: "lisupgrade.sh"
cron_file: "listupgrade"
state: absent
- name: Enable listupgrade cron
ansible.builtin.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
ansible.builtin.cron:
name: "lisupgrade.sh"
cron_file: "listupgrade"
state: absent
- name: old-kernel-autoremoval script is present
ansible.builtin.copy:
src: old-kernel-autoremoval.sh