fix(keycloak): move infra roles to converge for group_vars loading

The generate_workspace playbook creates group_vars/all/secrets.yml during
the prepare phase. Since Ansible loads group_vars at ansible-playbook
startup time (not dynamically mid-run), any roles in the same prepare.yml
that depend on those secrets will fail with undefined variables.

Move the infrastructure roles (cert_manager, cluster_issuer, ingress_nginx,
rabbitmq, percona, memcached) from prepare.yml to converge.yml. Since
molecule runs prepare and converge as separate ansible-playbook invocations,
converge will pick up the group_vars created during prepare.

This matches the pattern used by the AIO scenario, where generate_workspace
runs in prepare.yml and all infrastructure/service roles run in converge.yml.

Change-Id: I950844ed1c3ba969b47fc803fca013ef41568306
Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
This commit is contained in:
Dong Ma committed 2026-04-02 06:10:28 +08:00
1 parent 675b96b87a
commit 815ef5ffb9
2 files changed
+11 -11

No files matched your search

+11
View File
@@ -12,6 +12,17 @@
# License for the specific language governing permissions and limitations
# under the License.
- hosts: controllers
become: true
roles:
- vexxhost.atmosphere.cert_manager
- vexxhost.atmosphere.cluster_issuer
- vexxhost.atmosphere.ingress_nginx
- vexxhost.atmosphere.rabbitmq_cluster_operator
- vexxhost.atmosphere.percona_xtradb_cluster_operator
- vexxhost.atmosphere.percona_xtradb_cluster
- vexxhost.atmosphere.memcached
- hosts: controllers
become: true
roles:
-11
View File
@@ -50,14 +50,3 @@
- name: Install CSI
ansible.builtin.import_playbook: vexxhost.atmosphere.csi
- hosts: controllers
become: true
roles:
- vexxhost.atmosphere.cert_manager
- vexxhost.atmosphere.cluster_issuer
- vexxhost.atmosphere.ingress_nginx
- vexxhost.atmosphere.rabbitmq_cluster_operator
- vexxhost.atmosphere.percona_xtradb_cluster_operator
- vexxhost.atmosphere.percona_xtradb_cluster
- vexxhost.atmosphere.memcached