diff --git a/infrastructure/ansible/deploy_logic_push.yml b/infrastructure/ansible/deploy_logic_push.yml index 6fb8c5e..2d0090c 100644 --- a/infrastructure/ansible/deploy_logic_push.yml +++ b/infrastructure/ansible/deploy_logic_push.yml @@ -72,11 +72,16 @@ {% if cf_secrets_payload is defined and cf_secrets_payload is mapping %} {% for key, value in cf_secrets_payload.items() %} {% if key not in ['data', 'metadata', 'auth', 'lease_id', 'lease_duration', 'renewable', 'request_id', 'wrap_info', 'warnings', 'raw'] %} - # Mappe keys falls nötig: dns_api_token -> CF_DNS_API_TOKEN - {% if key == 'dns_api_token' %}CF_DNS_API_TOKEN={{ value }}{% endif %} - {% if key == 'dns_api_token' %}CF_ZONE_API_TOKEN={{ value }}{% endif %} - {% if key == 'email' %}CF_API_EMAIL={{ value }}{% endif %} - # Original auch schreiben + + {% if key == 'api_token' %} + CF_DNS_API_TOKEN={{ value }} + CF_ZONE_API_TOKEN={{ value }} + {% endif %} + + {% if key == 'email' %} + CF_API_EMAIL={{ value }} + {% endif %} + {{ key | trim }}={{ value }} {% endif %} {% endfor %}