From 33e7ed3a7e68968f815cf221a0e759e081ea2ab4 Mon Sep 17 00:00:00 2001 From: Stefan Krempel Date: Fri, 20 Nov 2026 13:10:15 +0100 Subject: [PATCH] molecule: fix quarkus_flags role lookup and keycloak.conf path The quarkus_flags scenario added in #445 is the only role-based scenario without the roles -> ../../roles symlink, so in CI its converge stops with "the role 'keycloak_quarkus' was not found". Once the role is found, verify fails next: it reads /opt/keycloak/keycloak-26.7.3/conf/keycloak.conf, but the scenario installs the role's default version, which is no longer 26.7.3. Add the roles symlink the other scenarios use and read keycloak.conf through the /opt/keycloak/keycloak-*/ glob already used in molecule/quarkus/verify.yml, so the check does not depend on the installed version. The assertions are unchanged. --- molecule/quarkus_flags/roles | 1 + molecule/quarkus_flags/verify.yml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 120000 molecule/quarkus_flags/roles diff --git a/molecule/quarkus_flags/roles b/molecule/quarkus_flags/roles new file mode 120000 index 0000000..b741aa3 --- /dev/null +++ b/molecule/quarkus_flags/roles @@ -0,0 +1 @@ +../../roles \ No newline at end of file diff --git a/molecule/quarkus_flags/verify.yml b/molecule/quarkus_flags/verify.yml index a310daf..54e281a 100644 --- a/molecule/quarkus_flags/verify.yml +++ b/molecule/quarkus_flags/verify.yml @@ -12,8 +12,8 @@ - ansible_facts.services["keycloak.service"]["status"] == "enabled" - name: Read keycloak.conf - ansible.builtin.slurp: - src: /opt/keycloak/keycloak-26.7.3/conf/keycloak.conf + ansible.builtin.shell: cat /opt/keycloak/keycloak-*/conf/keycloak.conf + changed_when: false register: keycloak_conf - name: Verify toggled flags in keycloak.conf @@ -25,7 +25,7 @@ - "'health-enabled=false' in keycloak_conf_content" - "'hostname-backchannel-dynamic=true' in keycloak_conf_content" vars: - keycloak_conf_content: "{{ keycloak_conf.content | b64decode }}" + keycloak_conf_content: "{{ keycloak_conf.stdout }}" - name: Read sysconfig ansible.builtin.slurp: