From 9ae553f24db9e7b5e6fa2416bdaaf609ffc5e20f Mon Sep 17 00:00:00 2001 From: "jean-yves.fournier" Date: Wed, 5 Jan 2022 16:12:27 +0100 Subject: [PATCH] change - to _ --- defaults/main.yml | 2 +- templates/conf/prometheus-opcache-exporter.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 44d43ff..466a1af 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -15,7 +15,7 @@ prometheus_mongodb_exporter_port: 27017 prometheus_phpfpm_sockets_directory: "/run/php/" prometheus_phpfpm_sockets_directory_additional: "/var/run/php*.sock" -prometheus_opcache_exporter_fcgi-uri: "unix:///var/run/php-000-default.sock" +prometheus_opcache_exporter_fcgi_uri: "unix:///var/run/php-000-default.sock" prometheus_postgres_exporter_systemd_user: "postgres" prometheus_postgres_exporter_host: "/var/run/postgresql/" diff --git a/templates/conf/prometheus-opcache-exporter.j2 b/templates/conf/prometheus-opcache-exporter.j2 index 0b99670..b90f92a 100644 --- a/templates/conf/prometheus-opcache-exporter.j2 +++ b/templates/conf/prometheus-opcache-exporter.j2 @@ -1,4 +1,4 @@ # {{ ansible_managed }} -{% if (prometheus_opcache_exporter_fcgi-uri is defined) %} -ARGS='"--opcache.fcgi-uri="{{ prometheus_opcache_exporter_fcgi-uri }}"' +{% if (prometheus_opcache_exporter_fcgi_uri is defined) %} +ARGS='"--opcache.fcgi-uri="{{ prometheus_opcache_exporter_fcgi_uri }}"' {% endif %}