diff --git a/molecule/prepare.yml b/molecule/prepare.yml index bf64b0a..cde3e3c 100644 --- a/molecule/prepare.yml +++ b/molecule/prepare.yml @@ -12,7 +12,7 @@ name: "{{ sudo_pkg_name }}" state: present when: - - ansible_user_id == 'root' + - ansible_facts["user_id"] == 'root' - name: Gather the package facts ansible.builtin.package_facts: @@ -30,7 +30,7 @@ - iproute state: present when: - - ansible_user_id == 'root' + - ansible_facts["user_id"] == 'root' - name: "Retrieve assets server from env" ansible.builtin.set_fact: diff --git a/molecule/quarkus_upgrade/prepare.yml b/molecule/quarkus_upgrade/prepare.yml index f7d8119..5d99f8d 100644 --- a/molecule/quarkus_upgrade/prepare.yml +++ b/molecule/quarkus_upgrade/prepare.yml @@ -31,7 +31,7 @@ ansible.builtin.dnf: name: "{{ sudo_pkg_name }}" when: - - ansible_user_id == 'root' + - ansible_facts["user_id"] == 'root' - name: Gather the package facts ansible.builtin.package_facts: