From bb3cf615f34d54c0634dce1fe06ec38dfac23a39 Mon Sep 17 00:00:00 2001 From: "jean-yves.fournier" Date: Mon, 17 Jan 2022 16:41:33 +0100 Subject: [PATCH] change order redis --- tasks/redis_exporter.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tasks/redis_exporter.yml b/tasks/redis_exporter.yml index 5124a64..67bf668 100644 --- a/tasks/redis_exporter.yml +++ b/tasks/redis_exporter.yml @@ -25,8 +25,14 @@ owner: root group: root mode: 0755 - notify: - - 'prometheus | redis exporter | restart service' + +- name: 'prometheus | redis exporter | install unit file to systemd' + template: + src: systemd/prometheus-redis-exporter.service.j2 + dest: /etc/systemd/system/prometheus-redis-exporter.service + owner: root + group: root + mode: 0600 - name: 'prometheus | redis exporter | configuration' template: @@ -39,14 +45,6 @@ notify: - 'prometheus | redis exporter | restart service' -- name: 'prometheus | redis exporter | install unit file to systemd' - template: - src: systemd/prometheus-redis-exporter.service.j2 - dest: /etc/systemd/system/prometheus-redis-exporter.service - owner: root - group: root - mode: 0600 - - name: 'prometheus | redis exporter | configure systemd to use service' systemd: daemon_reload: yes