Przeglądaj źródła

Skip oc_adm_csr when no bootstrapping is required on GCP

Caused the job to exit with 'No hosts specified.'
Clayton Coleman 7 lat temu
rodzic
commit
51a6636e16

+ 1 - 0
roles/openshift_gcp/tasks/configure_master_bootstrap.yml

@@ -34,3 +34,4 @@
   oc_adm_csr:
     nodes: "{{ groups['all'] | map('extract', hostvars) | selectattr('gce_metadata.bootstrap', 'match', 'true') | map(attribute='gce_name') | list }}"
     timeout: 60
+  when: groups['all'] | map('extract', hostvars) | selectattr('gce_metadata.bootstrap', 'match', 'true') | map(attribute='gce_name') | list | length > 0