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
This commit is contained in:
Mohammed Naser 2018-11-02 22:58:27 +01:00
parent 3cdfd8c531
commit f48ba8bc4a
1 changed files with 0 additions and 16 deletions

View File

@ -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 }}"