From 868665523cb10ce723bce48ea4e9b22edcd68f68 Mon Sep 17 00:00:00 2001 From: NymanRobin Date: Tue, 7 May 2024 21:55:32 +0300 Subject: [PATCH] There is conflicting rpm packages add --nobest flag This flag ignores updating packages to the newest that are conflicting. This allows running dev-env even when some pakcages might be conflicting as this is not directly in our control. Signed-off-by: NymanRobin --- 01_prepare_host.sh | 2 +- .../packages_installation/tasks/centos_required_packages.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/01_prepare_host.sh b/01_prepare_host.sh index 35518bd14..683b52be5 100755 --- a/01_prepare_host.sh +++ b/01_prepare_host.sh @@ -27,7 +27,7 @@ if [[ "${OS}" = "ubuntu" ]]; then sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 fi elif [[ "${OS}" = "centos" ]] || [[ "${OS}" = "rhel" ]]; then - sudo dnf upgrade -y + sudo dnf upgrade -y --nobest case "${VERSION_ID}" in 8) sudo dnf config-manager --set-enabled powertools diff --git a/vm-setup/roles/packages_installation/tasks/centos_required_packages.yml b/vm-setup/roles/packages_installation/tasks/centos_required_packages.yml index 7be57b3ed..10b48e9e8 100644 --- a/vm-setup/roles/packages_installation/tasks/centos_required_packages.yml +++ b/vm-setup/roles/packages_installation/tasks/centos_required_packages.yml @@ -23,6 +23,7 @@ dnf: name: "*" state: latest + nobest: true become: yes - name: Install podman