From f48ba8bc4ac3433eaf05a715ea56b15ebcbdbc24 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Fri, 2 Nov 2018 22:58:27 +0100 Subject: [PATCH] Drop COPR priority settings We no longer use priorities within CentOS and we let packages use the natural priorities. This task was put in place to restore to default priority and now that in Rocky this task has been run, it can be removed and no need to be re-ran as it will be no-op. Change-Id: Iddf6caf674bba61151c1ed77db95efb0c9f0cf82 --- tasks/lxc_install_yum.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tasks/lxc_install_yum.yml b/tasks/lxc_install_yum.yml index 18d5cd78..24ebd41c 100644 --- a/tasks/lxc_install_yum.yml +++ b/tasks/lxc_install_yum.yml @@ -43,22 +43,6 @@ state: present register: copr_repository_deploy -# NOTE: Existing CentOS environments may not have the COPR repo priority set -# higher than the default. The following task ensures that existing -# deployments have their priority adjusted for the COPR repository. -# NOTE: We need to remove priority settings in S cycle. -# TODO(mhayden): The ini_file module is required here since the yum_repository -# module can only do add/remove operations, not edits. -# Ansible bug: https://github.com/ansible/ansible/issues/22362 -- name: Ensure COPR repository priority is set - ini_file: - dest: /etc/yum.repos.d/thm-lxc2.0.repo - section: thm-lxc2.0 - option: priority - value: 99 - when: - - not copr_repository_deploy is changed - - name: Add GPG key for COPR LXC repo rpm_key: key: "{{ lxc_centos_package_key }}"