diff --git a/roles/diagnostic/tasks/setup.yml b/roles/diagnostic/tasks/setup.yml index 0f641b1..23b8028 100644 --- a/roles/diagnostic/tasks/setup.yml +++ b/roles/diagnostic/tasks/setup.yml @@ -2,7 +2,7 @@ - name: Set facts ansible.builtin.set_fact: - managing_user: "{{ ansible_user | default(ansible_env.USER) }}" + managing_user: "{{ ansible_user | default(ansible_env.USER) | default('root') }}" # Update should never be updated here because user already exists, # but we have to specify it because otherwise ansible user reset password to empty string