--- - name: Configurazione IS Registry Service #hosts: is_registry_devsec:is_registry_devnext hosts: all pre_tasks: - name: Set gcube security keys variables properly according to the environment set_fact: gcube_security_keys: "{{ gcube_prod_security_keys if infra == 'prod' else gcube_preprod_security_keys if infra == 'pre' else gcube_dev_security_keys }}" gcube_security_key_legacy: "{{ gcube_prod_security_key_legacy if infra == 'prod' else gcube_preprod_security_key_legacy if infra == 'pre' else gcube_dev_security_key_legacy }}" # - name: DEBUG # debug: # msg: # gcore_host: "{{ gcore_host}}" # security_keys: "{{ gcube_dev_security_keys if infra == 'dev' else gcube_prod_security_keys }}" # sec_keys: "{{ vars['gcube_' ~ infra ~ '_security_keys'] }}" roles: - { role: is-registry }