diff --git a/ansible/main/playbooks/cluster-prepare.yaml b/ansible/main/playbooks/cluster-prepare.yaml index c1211545359a1..d8dc1582a5a3e 100644 --- a/ansible/main/playbooks/cluster-prepare.yaml +++ b/ansible/main/playbooks/cluster-prepare.yaml @@ -39,7 +39,7 @@ key: "https://github.com/{{ github_username }}.keys" - name: User Configuration | Silence login ansible.builtin.file: - dest: "{{ ansible_user if ansible_user != 'root' else '/root' }}/.hushlogin" + dest: "{{ '/home/' + ansible_user if ansible_user != 'root' else '/root' }}/.hushlogin" state: touch owner: "{{ ansible_user }}" group: "{{ ansible_user }}"