From 13fc81908c0710947c2cd1104845431b44356ea2 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Mon, 28 Apr 2025 19:01:30 +0200 Subject: [PATCH] Fix creation of hpctests directory The hpctests role creates a directory that is user-owned and group-owned by hpctests_user, which defaults to ansible_user. However, this group is not guaranteed to exist, especially in LDAP environments where groups dedicated to a single user are often not used. Support customising the value via the hpctests_group variable, while still defaulting to hpctests_user. --- ansible/roles/hpctests/defaults/main.yml | 1 + ansible/roles/hpctests/tasks/setup.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/hpctests/defaults/main.yml b/ansible/roles/hpctests/defaults/main.yml index 3ea0a0218..d7a31da04 100644 --- a/ansible/roles/hpctests/defaults/main.yml +++ b/ansible/roles/hpctests/defaults/main.yml @@ -1,5 +1,6 @@ --- hpctests_user: "{{ ansible_user }}" +hpctests_group: "{{ ansible_user }}" hpctests_rootdir: "/home/{{ hpctests_user }}/hpctests" hpctests_pre_cmd: '' hpctests_pingmatrix_modules: [gnu12 openmpi4] diff --git a/ansible/roles/hpctests/tasks/setup.yml b/ansible/roles/hpctests/tasks/setup.yml index 248ee29fd..316b32880 100644 --- a/ansible/roles/hpctests/tasks/setup.yml +++ b/ansible/roles/hpctests/tasks/setup.yml @@ -26,7 +26,7 @@ path: "{{ hpctests_rootdir }}" state: directory owner: "{{ hpctests_user }}" - group: "{{ hpctests_user }}" + group: "{{ hpctests_group }}" - name: Set fact for UCX_NET_DEVICES set_fact: