From 19400d9622ceeb34c80b10810d3373e67e7503b4 Mon Sep 17 00:00:00 2001 From: Marco Rodrigues Date: Mon, 29 Jan 2024 17:11:24 +0100 Subject: [PATCH] Allow leapp packages to be removed Leapp packages that were installed with the Leapp utility are automatically added to the exclude list to prevent critical files from being removed https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/upgrading_from_rhel_7_to_rhel_8/performing-post-upgrade-tasks-rhel-7-to-rhel-8_upgrading-from-rhel-7-to-rhel-8#doc-wrapper --- roles/upgrade/tasks/leapp-post-upgrade.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/upgrade/tasks/leapp-post-upgrade.yml b/roles/upgrade/tasks/leapp-post-upgrade.yml index 34b586e..77671b4 100644 --- a/roles/upgrade/tasks/leapp-post-upgrade.yml +++ b/roles/upgrade/tasks/leapp-post-upgrade.yml @@ -41,6 +41,9 @@ - name: Include check-for-old-packages.yml ansible.builtin.include_tasks: check-for-old-packages.yml +- name: Delete exclude line from dnf.conf + ansible.builtin.command: "/bin/dnf config-manager --save --setopt exclude=''" + - name: Remove leapp related packages ansible.builtin.package: name: