diff --git a/tasks/exporter/services/cloudflare.yml b/tasks/exporter/services/cloudflare.yml index e490a69..da62c4c 100644 --- a/tasks/exporter/services/cloudflare.yml +++ b/tasks/exporter/services/cloudflare.yml @@ -3,6 +3,7 @@ assert: that: - cloudflare_api_key is defined + - cloudflare_api_email is defined tags: ['prometheus_cloudflare'] - include_tasks: ../docker.yml diff --git a/templates/compose/cloudflare.yml.j2 b/templates/compose/cloudflare.yml.j2 index 5b6af39..989151d 100644 --- a/templates/compose/cloudflare.yml.j2 +++ b/templates/compose/cloudflare.yml.j2 @@ -11,6 +11,7 @@ services: restart: unless-stopped environment: - CF_API_TOKEN={{ cloudflare_api_key }} + - CF_API_EMAIL={{ cloudflare_api_email }} ports: - 8082:8080 networks: