From: David Galloway Date: Thu, 14 May 2026 16:28:33 +0000 (-0400) Subject: users: Change home dir path for teuthology host X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F844%2Fhead;p=ceph-cm-ansible.git 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 --- 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 }}"