remove yum priority
In the past we were using priority in order to mask package from epel. now we only install epel with a very limited list of allowed pkg and only when needed. This patch set the priority to 99 for COPR repo. Depends-On: Ie05dc74a36619cbd88204c4909e540c736431b6c Depends-On: Ic6525e013b96e00d115d13a2b9e8fb00c3000127 Depends-On: I2e42ef4022aaaa2e1cb9f461e63ce2e9e1f49511 Change-Id: Ifca03344bfab8442a11b1c82443427c164b9bd57
This commit is contained in:
parent
36c6b3552d
commit
6eee41f123
@ -27,7 +27,7 @@
|
||||
gpgcheck: yes
|
||||
gpgkey: "{{ lxc_centos_package_key }}"
|
||||
repo_gpgcheck: no
|
||||
priority: 50
|
||||
priority: 99
|
||||
state: present
|
||||
|
||||
- name: Deploy local COPR yum repo for LXC 2.0
|
||||
@ -39,13 +39,14 @@
|
||||
gpgcheck: yes
|
||||
gpgkey: "{{ lxc_centos_package_key }}"
|
||||
repo_gpgcheck: no
|
||||
priority: 50
|
||||
priority: 99
|
||||
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
|
||||
@ -54,7 +55,7 @@
|
||||
dest: /etc/yum.repos.d/thm-lxc2.0.repo
|
||||
section: thm-lxc2.0
|
||||
option: priority
|
||||
value: 50
|
||||
value: 99
|
||||
when:
|
||||
- not copr_repository_deploy | changed
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user