From 7ce4ecbaee279cdf0b150b87ba0c4afc809596ca Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Thu, 27 Feb 2020 18:38:14 +0200 Subject: [PATCH] Save disk usage for containers jobs Change-Id: I6257ed36b4b36a2f7524b33ac2499326af1f0b5b --- roles/build-containers/tasks/post.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/build-containers/tasks/post.yaml b/roles/build-containers/tasks/post.yaml index 770b46867..406f3ecad 100644 --- a/roles/build-containers/tasks/post.yaml +++ b/roles/build-containers/tasks/post.yaml @@ -20,6 +20,9 @@ rsync -var --no-links /etc/containers/ {{ workspace }}/etc/containers/ || true rsync -var --no-links --include 'yum.repos.d/***' --include 'yum.conf' --include 'dnf/***' --exclude='*' /etc/ {{ workspace }}/etc/ || true + # Save some statistics + df -h &>{{ workspace }}/logs/system/disk_usage.txt + chmod -R a+r "{{ workspace }}" chown -R {{ ansible_user }}: "{{ workspace }}" changed_when: true