diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-09-08 20:06:18 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-09-08 20:06:18 +0200 |
commit | a7b83e9beb689020319aea2b5fc9a0a40d7f824d (patch) | |
tree | 48a23374f07edc3fc0b23bc4ae3f488bde150ace /roles | |
parent | replace ipsubnet() filter to new path (diff) |
prometheus/exporter: restart not reload nginx if TLS cert changes
Diffstat (limited to 'roles')
-rw-r--r-- | roles/monitoring/prometheus/exporter/base/handlers/main.yml | 4 | ||||
-rw-r--r-- | roles/monitoring/prometheus/exporter/base/tasks/tls.yml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/monitoring/prometheus/exporter/base/handlers/main.yml b/roles/monitoring/prometheus/exporter/base/handlers/main.yml index d4e42ca0..6deed0cd 100644 --- a/roles/monitoring/prometheus/exporter/base/handlers/main.yml +++ b/roles/monitoring/prometheus/exporter/base/handlers/main.yml @@ -1,5 +1,5 @@ --- -- name: reload nginx +- name: restart nginx service: name: nginx - state: reloaded + state: restarted diff --git a/roles/monitoring/prometheus/exporter/base/tasks/tls.yml b/roles/monitoring/prometheus/exporter/base/tasks/tls.yml index 199cd6e2..35f410e8 100644 --- a/roles/monitoring/prometheus/exporter/base/tasks/tls.yml +++ b/roles/monitoring/prometheus/exporter/base/tasks/tls.yml @@ -25,7 +25,7 @@ owner: prometheus-exporter group: prometheus-exporter mode: 0400 - notify: reload nginx + notify: restart nginx - name: create signing request for exporter certificate openssl_csr: @@ -86,7 +86,7 @@ copy: content: "{{ prometheus_exporter_server_cert.certificate }}" dest: /etc/ssl/prometheus/exporter/crt.pem - notify: reload nginx + notify: restart nginx - name: slurp CA certificate delegate_to: "{{ prometheus_server }}" |