refactor: use generic ansible modules service and package
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2021-06-05 15:30:44 +02:00
parent 6fe3f7809e
commit 487d0d1f34
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -112,7 +112,7 @@
notify: __prometheus_restart
- name: Ensure prometheus service is up and running
systemd:
service:
name: prometheus
daemon_reload: yes
enabled: yes