From 1cf7d99dbb00737e19b124b2bf20f81e9ea7188d Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 14 May 2026 12:28:33 -0400 Subject: [PATCH] users: Change home dir path for teuthology host The home dirs live at the /tank/home mountpoint. This change will default to /home unless the host we're running the role against is in the teuthology ansible group. Fixes: https://tracker.ceph.com/issues/63562 Signed-off-by: David Galloway --- roles/users/tasks/create_users.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/users/tasks/create_users.yml b/roles/users/tasks/create_users.yml index cd4567b8..d6492a06 100644 --- a/roles/users/tasks/create_users.yml +++ b/roles/users/tasks/create_users.yml @@ -14,6 +14,7 @@ shell: /bin/bash state: present append: yes + home: "{{ ('teuthology' in group_names) | ternary('/tank/home', '/home') }}/{{ item.name }}" with_items: "{{ managed_admin_users }}" - name: Create all users without sudo access. @@ -21,4 +22,5 @@ name: "{{ item.name }}" shell: /bin/bash state: present + home: "{{ ('teuthology' in group_names) | ternary('/tank/home', '/home') }}/{{ item.name }}" with_items: "{{ managed_users }}" -- 2.47.3