Collect yum/dnf configuration on build-containers

Previous code was not collecting the yum/dnf configuration which
made impossible to debug issues specific to these files.

Change-Id: I6c0f7befc75ab573b7f0e936c0ffc85fa151b411
This commit is contained in:
Sorin Sbarnea 2019-03-22 15:28:30 +00:00
parent 92b2ac6fdd
commit 822f5d10ca
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 }}"