Merge "Collect yum/dnf configuration on build-containers"

This commit is contained in:
Zuul 2019-03-27 01:30:46 +00:00 committed by Gerrit Code Review
commit 7b132dc072
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@
rsync -var --no-links /var/log/ {{ workspace }}/logs/system/ || true
rsync -var --no-links /etc/docker/ {{ workspace }}/etc/docker/ || true
rsync -var --no-links /etc/containers/ {{ workspace }}/etc/containers/ || true
rsync -var --no-links /etc/yum.repos.d/ {{ workspace }}/etc/yum.repos.d/ || true
rsync -var --no-links --include 'yum.repos.d/***' --include 'yum.conf' --include 'dnf/***' --exclude='*' /etc/ {{ workspace }}/etc/ || true
gzip -r "{{ workspace }}/logs" "{{ workspace }}/conf" "{{ workspace }}/etc"
chmod -R a+r "{{ workspace }}"
chown -R {{ ansible_user }}: "{{ workspace }}"