From 487d0d1f34d5462c3e98bc7cd71ba39f753c6dc8 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 5 Jun 2021 15:30:44 +0200 Subject: [PATCH] refactor: use generic ansible modules service and package --- handlers/main.yml | 4 ++-- tasks/setup.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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