Ansible: add playbook to delete the .lttng folder of the jenkins user
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 22 Jul 2022 14:20:04 +0000 (10:20 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 22 Jul 2022 14:29:58 +0000 (10:29 -0400)
The lttng-tools jobs currently do not use a custom LTTNG_HOME thus
lttng-sessiond uses /home/jenkins/.lttng as its rundir. Files in this
directory might not be always cleanup-up by lttng-sessiond during
testing. Normally this is not a problem but it is if someone (me) is
playing with the permissions of those files (lttng-sessiond side) and
end up setting a read only permissions for the user. This prevent
subsequent jobs from opening and overwriting the value of the files if
they are already present.

Removing the directory solves the problem for the CI infra.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: I102cd46368654999bd3d814dd0e09180700a129f

automation/ansible/playbooks/delete-dot-lttng.yml [new file with mode: 0644]

diff --git a/automation/ansible/playbooks/delete-dot-lttng.yml b/automation/ansible/playbooks/delete-dot-lttng.yml
new file mode 100644 (file)
index 0000000..3ab84bb
--- /dev/null
@@ -0,0 +1,9 @@
+---
+- name: Delete .lttng folder for the jenkins user
+  hosts: all
+
+  tasks:
+   - name: delete .lttng folder
+     file:
+             path: /home/jenkins/.lttng
+             state: absent
This page took 0.023561 seconds and 4 git commands to generate.