diff --git a/handlers/main.yml b/handlers/main.yml index 5389c2d..2c6316e 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,6 +1,6 @@ --- - name: Restart Prometheus Service - systemd: + service: name: prometheus state: restarted daemon_reload: yes @@ -10,7 +10,7 @@ become_user: root - name: Reload Prometheus Service - systemd: + service: name: prometheus state: reloaded listen: __prometheus_reload diff --git a/tasks/setup.yml b/tasks/setup.yml index e68bebf..4644b34 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -112,7 +112,7 @@ notify: __prometheus_restart - name: Ensure prometheus service is up and running - systemd: + service: name: prometheus daemon_reload: yes enabled: yes