Skip to content

Commit 3dc3149

Browse files
committed
Clean yum cache after setting up repos
1 parent b6c361b commit 3dc3149

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

ansible/roles/packages-repo/tasks/main.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
environment: "{{proxy_env}}"
3131

3232
- name: clean yum cache
33+
command: 'yum --disablerepo="*" --enablerepo="docker,kubernetes,gluster" clean all'
34+
when: ansible_os_family == 'RedHat'
35+
environment: "{{proxy_env}}"
36+
37+
- name: yum makecache
3338
command: 'yum --disablerepo="*" --enablerepo="docker,kubernetes,gluster" makecache'
3439
when: ansible_os_family == 'RedHat'
3540
environment: "{{proxy_env}}"

docs/disconnected_install.md

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ gpgcheck=1
101101
repo_gpgcheck=0
102102
gpgkey=https://download.gluster.org/pub/gluster/glusterfs/3.8/3.8.7/rsa.pub
103103
EOF'
104+
105+
# Clean yum cache
106+
yum clean all
104107
```
105108

106109
### Download the RPMs using reposync

integration/test-resources/disconnected-installation/configure-rpm-mirrors.sh

+3
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,6 @@ enabled=1
174174
gpgcheck=1
175175
gpgkey=file:///tmp/gluster.gpg
176176
EOF
177+
178+
# Need to clean cache to download metadata again
179+
yum clean all

0 commit comments

Comments
 (0)