[libvirt-jenkins-ci PATCH v2 1/6] guests: users: Discard the .bash_logout skeleton file

Erik Skultety eskultet at redhat.com
Tue Apr 7 11:31:16 UTC 2020

As part of the users tasks, we remove the .profile file after we create
our own .bash_profile. As part of that effort, let's remove the .bash_logout
skeleton file as well, the reason being gitlab's runner agent which
has a hard time initializing a build environment on Debian where the
system populates the .bash_logout with console cleaning code which
messes up the runner and causes the build to fail instantly [1].
Since Debian is the only distro actually populating the file and the
machines are assumed to be accessed over SSH, we can safely drop it.

[1] https://gitlab.com/gitlab-org/gitlab-runner/issues/4449

Signed-off-by: Erik Skultety <eskultet at redhat.com>
 guests/playbooks/update/tasks/users.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guests/playbooks/update/tasks/users.yml b/guests/playbooks/update/tasks/users.yml
index 30e5fca..a07349f 100644
--- a/guests/playbooks/update/tasks/users.yml
+++ b/guests/playbooks/update/tasks/users.yml
@@ -63,9 +63,10 @@
     - bash_profile
     - bashrc
-- name: '{{ flavor }}: Remove existing shell profile'
+- name: '{{ flavor }}: Remove unnecessary home skeleton files'
     path: /home/{{ flavor }}/.{{ item }}
     state: absent
     - profile
+    - bash_logout

More information about the libvir-list mailing list