From e43df8b992cd5847146039304f54c6e616e7967d Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Sun, 8 Dec 2024 16:50:11 +0500 Subject: [PATCH] ansible_facts.user --- automation/molecule/default/converge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/molecule/default/converge.yml b/automation/molecule/default/converge.yml index 82c80398b..aa8690b79 100644 --- a/automation/molecule/default/converge.yml +++ b/automation/molecule/default/converge.yml @@ -19,7 +19,7 @@ become: true become_method: su ansible.builtin.user: - name: "{{ ansible_user }}" + name: "{{ ansible_facts.user | default('root') }}" groups: sudo append: true