Skip to content

Commit 13fc819

Browse files
committed
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.
1 parent 4ef0c82 commit 13fc819

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ansible/roles/hpctests/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
hpctests_user: "{{ ansible_user }}"
3+
hpctests_group: "{{ ansible_user }}"
34
hpctests_rootdir: "/home/{{ hpctests_user }}/hpctests"
45
hpctests_pre_cmd: ''
56
hpctests_pingmatrix_modules: [gnu12 openmpi4]

ansible/roles/hpctests/tasks/setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
path: "{{ hpctests_rootdir }}"
2727
state: directory
2828
owner: "{{ hpctests_user }}"
29-
group: "{{ hpctests_user }}"
29+
group: "{{ hpctests_group }}"
3030

3131
- name: Set fact for UCX_NET_DEVICES
3232
set_fact:

0 commit comments

Comments
 (0)