From c5c55332687afb4c00058e08aa65642e7cb823c8 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 16 Jun 2020 14:41:34 +0900 Subject: [PATCH] Do not fail even if dnf cleanup fails Since ansible 2.8, dnf module fails if repository name contains '*' and no repogitory which matches the expression detected. This patch makes current playbook avoid errors during dnf cleanup task, so that the tasks can pass even if there is no dnf repositories configured. Conflicts: playbooks/prepare-node-common.yaml Change-Id: Ie0a7e6455e68b387a9d392fc1fc8c970da86cddf (cherry picked from commit 7e40c8c875ca8dd58eb9a57e78d9f9277de9573b) (cherry picked from commit 27df28829d5fdf24ff05d71f0dba3558fc35bfff) --- playbooks/prepare-node-common.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/prepare-node-common.yaml b/playbooks/prepare-node-common.yaml index 11be2605d..bddd50ff3 100644 --- a/playbooks/prepare-node-common.yaml +++ b/playbooks/prepare-node-common.yaml @@ -34,6 +34,7 @@ name: "{{ item }}" state: absent become: true + ignore_errors: true when: - ansible_os_family == 'RedHat' - ansible_distribution != "Fedora"