diff --git a/roles/float-infra-nginx/tasks/api-proxy.yml b/roles/float-infra-nginx/tasks/api-proxy.yml
index 5a55e18f1ef0d7dfb57ce39c86f46fb48fa76eca..8fcce1931b5e757c22637672bbe8a0866d3351ff 100644
--- a/roles/float-infra-nginx/tasks/api-proxy.yml
+++ b/roles/float-infra-nginx/tasks/api-proxy.yml
@@ -1,7 +1,7 @@
 ---
 
 - set_fact:
-    api_proxy_auth_services: "{{ services.values() | selectattr('public_endpoints', 'defined') | map(attribute='public_endpoints') | flatten | selectattr('enable_api_proxy') | map(attribute='auth_service') }}"
+    api_proxy_auth_services: "{{ services.values() | selectattr('public_endpoints', 'defined') | map(attribute='public_endpoints') | flatten | selectattr('enable_api_proxy', 'defined') | selectattr('enable_api_proxy') | map(attribute='auth_service') }}"
 
 - name: Configure api-proxy auth services
   copy: