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

Commit

Permalink
Move service creation from install to configure (#57)
Browse files Browse the repository at this point in the history
[patch]
  • Loading branch information
mgrecar authored and paulfantom committed Dec 3, 2018
1 parent 57326fb commit 8a0e495
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@
validate: "/usr/local/bin/amtool --alertmanager.url= check-config %s"
notify:
- restart alertmanager

- name: create systemd service unit
template:
src: alertmanager.service.j2
dest: /etc/systemd/system/alertmanager.service
owner: root
group: root
mode: 0644
notify:
- restart alertmanager
10 changes: 0 additions & 10 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@
notify:
- restart alertmanager

- name: create systemd service unit
template:
src: alertmanager.service.j2
dest: /etc/systemd/system/alertmanager.service
owner: root
group: root
mode: 0644
notify:
- restart alertmanager

- name: Install SELinux dependencies on RedHat OS family
package:
name: "{{ item }}"
Expand Down

0 comments on commit 8a0e495

Please sign in to comment.