From 01d3063e57ae1700cd46b053d301ceaf0cbaa4e8 Mon Sep 17 00:00:00 2001 From: Beto Rodriguez Date: Tue, 15 Oct 2024 16:12:34 -0600 Subject: [PATCH] Remove condition --- roles/acm_setup/tasks/get-mirroring-config.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/roles/acm_setup/tasks/get-mirroring-config.yml b/roles/acm_setup/tasks/get-mirroring-config.yml index 9e981963a..66a19b54b 100644 --- a/roles/acm_setup/tasks/get-mirroring-config.yml +++ b/roles/acm_setup/tasks/get-mirroring-config.yml @@ -16,12 +16,6 @@ name: "{{ acm_machine_config }}" register: _acm_setup_master_mc no_log: true - until: > - _acm_setup_master_mc is defined - and _acm_setup_master_mc.resources is defined - and _acm_setup_master_mc.resources | length == 1 - retries: 10 - delay: 15 - name: "Get cluster user-ca certificate" community.kubernetes.k8s_info: @@ -34,7 +28,7 @@ - name: "Create a Config map with registry entries and CA bundle" vars: - acm_user_ca_bundle: '{{ _acm_setup_user_ca_bundle.resources[0].data["ca-bundle.crt"] }}' + acm_user_ca_bundle: "{{ _acm_setup_user_ca_bundle.resources[0].data['ca-bundle.crt'] }}" registry_config: "{{ (_acm_setup_master_mc | json_query('resources[0].spec.config.storage.files[?path==`/etc/containers/registries.conf`].contents.source'))[0] | regex_replace('^data:.*;base64,', '') | b64decode }}" mirror_cm_def: |