From 30bd72614d334faef5f83af3443348030e7caa78 Mon Sep 17 00:00:00 2001 From: David Prevot Date: Tue, 18 Apr 2023 09:47:03 +0200 Subject: [PATCH] listupgrade: Fix removal order --- listupgrade/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/listupgrade/tasks/main.yml b/listupgrade/tasks/main.yml index 1a48ac6e..9261b3fa 100644 --- a/listupgrade/tasks/main.yml +++ b/listupgrade/tasks/main.yml @@ -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