Removes package cache references from yum config
Removes references to the now-deprecated package cache repo from yum.conf and the Percona repo in yum.repos.d Change-Id: I19248324604e079336c896b763a0b97ec6aad3a2 Closes-Bug: #1849219
This commit is contained in:
parent
88360784d3
commit
ed625067b3
@ -44,7 +44,7 @@
|
||||
- name: Remove yum package manager proxy
|
||||
lineinfile:
|
||||
line: >-
|
||||
proxy="http://{{ internal_lb_vip_address }}:{{ repo_pkg_cache_port | default('3142') }}"
|
||||
proxy=http://{{ internal_lb_vip_address }}:{{ repo_pkg_cache_port | default('3142') }}
|
||||
dest: "/etc/yum.conf"
|
||||
state: absent
|
||||
when:
|
||||
@ -52,6 +52,14 @@
|
||||
tags:
|
||||
- common-proxy
|
||||
|
||||
- name: Remove yum package manager proxy in repo definitions
|
||||
shell: |
|
||||
sed -i -e '/proxy = http:\/\/{{ internal_lb_vip_address }}:{{ repo_pkg_cache_port | default('3142') }}/d' /etc/yum.repos.d/*
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
tags:
|
||||
- common-proxy
|
||||
|
||||
# NOTE(mhayden): If dnf and yum are installed on CentOS, we need to configure
|
||||
# a proxy for dnf as well.
|
||||
- name: Remove dnf package manager proxy
|
||||
|
Loading…
x
Reference in New Issue
Block a user