From e966b8abc2a618818e5a46e98f4201a2cfc55567 Mon Sep 17 00:00:00 2001 From: "tom.chivert" Date: Fri, 24 May 2024 11:05:59 +0200 Subject: [PATCH] Add default dns to cloudflare container --- defaults/main.yml | 4 ++++ templates/compose/cloudflare.yml.j2 | 2 ++ 2 files changed, 6 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 5fcedda..4a1e166 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -88,3 +88,7 @@ grafana_log_level: error grafana_router_logging: false grafana_disable_sanitize_html: true grafana_traefik_entrypoint: 'websecure' + +# cloudflare + +prometheus_cloudflare_dns: "1.1.1.1" diff --git a/templates/compose/cloudflare.yml.j2 b/templates/compose/cloudflare.yml.j2 index ae421b3..5995aa7 100644 --- a/templates/compose/cloudflare.yml.j2 +++ b/templates/compose/cloudflare.yml.j2 @@ -18,3 +18,5 @@ services: - 8082:8080 networks: - {{ prometheus_docker_network }} + dns: + - "{{ prometheus_cloudflare_dns }}"