]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
users: Change home dir path for teuthology host 844/head
authorDavid Galloway <david.galloway@ibm.com>
Thu, 14 May 2026 16:28:33 +0000 (12:28 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 14 May 2026 16:28:33 +0000 (12:28 -0400)
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 <david.galloway@ibm.com>
roles/users/tasks/create_users.yml

index cd4567b8b405397e470528ecf2c0e7b017c49960..d6492a067b3544e7b8ef9e22e187fef5ea7c4f03 100644 (file)
@@ -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 }}"