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 %}