Skip to content

Commit

Permalink
Remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
betoredhat committed Oct 15, 2024
1 parent 70e7869 commit 01d3063
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions roles/acm_setup/tasks/get-mirroring-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down

0 comments on commit 01d3063

Please sign in to comment.