From: Jonathan Rajotte Date: Fri, 22 Jul 2022 14:20:04 +0000 (-0400) Subject: Ansible: add playbook to delete the .lttng folder of the jenkins user X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=329764fba9292427ab3d4bf764a96623a19e4944;p=lttng-ci.git Ansible: add playbook to delete the .lttng folder of the jenkins user 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 Change-Id: I102cd46368654999bd3d814dd0e09180700a129f --- diff --git a/automation/ansible/playbooks/delete-dot-lttng.yml b/automation/ansible/playbooks/delete-dot-lttng.yml new file mode 100644 index 0000000..3ab84bb --- /dev/null +++ b/automation/ansible/playbooks/delete-dot-lttng.yml @@ -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