add a when to copy and convert gcs keyfile task
- name: copy and convert gcp_user_gcsdockerregistry
shell: "rm -f {{ dest_gcsdockerregistry_file }}; python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < {{ obg_gcp_user_gcsdockerregistry_file }} > {{ dest_gcsdockerregistry_file }}"
+ when: obg_gcp_user_gcsdockerregistry_file is defined
- debug:
var: gcsdockerregistry_out
