refactor: use generic ansible modules service and package
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6fe3f7809e
commit
487d0d1f34
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Restart Prometheus Service
|
- name: Restart Prometheus Service
|
||||||
systemd:
|
service:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
state: restarted
|
state: restarted
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
@ -10,7 +10,7 @@
|
|||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
- name: Reload Prometheus Service
|
- name: Reload Prometheus Service
|
||||||
systemd:
|
service:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
state: reloaded
|
state: reloaded
|
||||||
listen: __prometheus_reload
|
listen: __prometheus_reload
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
notify: __prometheus_restart
|
notify: __prometheus_restart
|
||||||
|
|
||||||
- name: Ensure prometheus service is up and running
|
- name: Ensure prometheus service is up and running
|
||||||
systemd:
|
service:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user