From 0891945924fd5aca6d2ca15fd648d1ea027df7ad Mon Sep 17 00:00:00 2001 From: Martin Cihlar Date: Mon, 19 Oct 2026 17:45:10 +0200 Subject: [PATCH] AMW-578 Fix INJECT_FACTS_AS_VARS deprecation in molecule prepare files --- molecule/prepare.yml | 4 ++-- molecule/quarkus_upgrade/prepare.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: