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 7e40c8c875)
(cherry picked from commit 27df28829d)
This commit is contained in:
Takashi Kajinami
2020-06-16 14:41:34 +09:00
committed by Tobias Urdin
parent 40617d6c33
commit c5c5533268

View File

@@ -34,6 +34,7 @@
name: "{{ item }}"
state: absent
become: true
ignore_errors: true
when:
- ansible_os_family == 'RedHat'
- ansible_distribution != "Fedora"