Skip to content

Commit adbfcfd

Browse files
committed
fix ansible user home move
1 parent c81c3ff commit adbfcfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slurm-infra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
gather_facts: false
4141
tasks:
4242
- name: Set up Ansible user
43-
user: "{{ appliances_local_users_ansible_user }}"
43+
user: "{{ (appliances_local_users_default | selectattr('user.name', 'eq', appliances_local_users_ansible_user_name))[0]['user'] }}"
4444
become_method: "sudo"
4545
# Need to change working directory otherwise we try to switch back to non-existent directory.
4646
become_flags: '-i'

0 commit comments

Comments
 (0)