From 2828c083f34af27c2ea9ec0dc77a80809494362b Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Oct 17 2019 14:43:41 +0000 Subject: Set ansible_pkg_mgr: on run-test-yml role - issue with rawhide node --- diff --git a/playbooks/rpm/rpmtest.yaml b/playbooks/rpm/rpmtest.yaml index 9e07447..b84e44d 100644 --- a/playbooks/rpm/rpmtest.yaml +++ b/playbooks/rpm/rpmtest.yaml @@ -9,4 +9,5 @@ yum: name: ansible state: present + use_backend: "dnf" become: true diff --git a/roles/run-tests-yml/tasks/main.yaml b/roles/run-tests-yml/tasks/main.yaml index 2e68c9b..da7ae70 100644 --- a/roles/run-tests-yml/tasks/main.yaml +++ b/roles/run-tests-yml/tasks/main.yaml @@ -1,8 +1,15 @@ --- +# On a rawhide image for some reason ansible_pkg_mgr is not set +# and make the yum ansible module to fails +#- set_fact: +# ansible_facts: +# pkg_mgr: "dnf" + - name: Install system dependencies yum: name: "ansible,python2-dnf,libselinux-python,standard-test-roles" state: latest + use_backend: "dnf" become: yes - name: Run the tests