Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from SoInteractive/systemd
Browse files Browse the repository at this point in the history
Reload systemd without using `command` module
  • Loading branch information
Paweł Krupa authored Oct 5, 2017
2 parents e06553b + e289f51 commit b8dcd2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
8 changes: 3 additions & 5 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
- name: reload systemd
command: systemctl daemon-reload

- name: restart prometheus
service:
systemd:
daemon_reload: yes
name: prometheus
state: restarted

- name: reload prometheus
service:
systemd:
name: prometheus
state: reloaded
1 change: 0 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
group: root
mode: 0644
notify:
- reload systemd
- restart prometheus

#- name: change pam nofile limits for prometheus
Expand Down
2 changes: 0 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@
service:
name: prometheus
enabled: yes
notify:
- reload systemd

0 comments on commit b8dcd2e

Please sign in to comment.