Fix: Add gather_facts to molecule converge 74/73974/1 master
authorAnil Belur <abelur@linuxfoundation.org>
Fri, 12 Dec 2025 04:03:42 +0000 (14:03 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 12 Dec 2025 04:04:48 +0000 (14:04 +1000)
The java-install role tasks use ansible_facts which require gather_facts
to be enabled in the converge playbook. This fixes molecule test failures.

Change-Id: Ie409b2e3ff82320769d0d403cc39d1acbd2ba24d
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
molecule/default/converge.yml

index 1e30adc..a8044fd 100644 (file)
@@ -1,5 +1,6 @@
 ---
 - name: Converge
   hosts: all
+  gather_facts: true
   roles:
     - role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"