From 54293a0efbfd177a38ec6681a43857175a518b76 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Thu, 24 Jul 2025 10:25:07 +0200 Subject: [PATCH] Run import_auth_config_to_gateway when public_url is defined (#2064) --- roles/installer/tasks/initialize_django.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/installer/tasks/initialize_django.yml b/roles/installer/tasks/initialize_django.yml index ab2fe1c4..d027d29c 100644 --- a/roles/installer/tasks/initialize_django.yml +++ b/roles/installer/tasks/initialize_django.yml @@ -56,6 +56,17 @@ bash -c "awx-manage unregister_queue --queuename=tower" when: "'[tower capacity=' in legacy_queue.stdout" +- name: Import auth config when public_url is defined and gating version is defined + kubernetes.core.k8s_exec: + namespace: "{{ ansible_operator_meta.namespace }}" + pod: "{{ awx_web_pod_name }}" + container: "{{ ansible_operator_meta.name }}-web" + command: >- + bash -c "awx-manage import_auth_config_to_gateway" + when: + - gating_version | length + - public_base_url is defined + - name: Check for specified default execution environment pull credentials k8s_info: kind: Secret