Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure services are running. #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/install-alertmanager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
template: src="../templates/alertmanager.sysvinit.{{ ansible_os_family|lower }}.sh.j2" dest="/etc/init.d/alertmanager" mode="a+x"

- name: set INIT status
service: name=alertmanager enabled=yes
service: name=alertmanager enabled=yes state=started

#- name: set INIT status and start
# service: name=alertmanager state=started
Expand Down
3 changes: 3 additions & 0 deletions tasks/install-compile-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
apt: name=build-essential state=present update_cache=yes
when: ansible_pkg_mgr == "apt"

- name: install gcc
yum: name=gcc state=present update_cache=yes
when: ansible_pkg_mgr == "yum"

- name: set internal variables for convenience
set_fact:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install-prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
template: src="../templates/prometheus.sysvinit.{{ ansible_os_family|lower }}.sh.j2" dest="/etc/init.d/prometheus" mode="a+x"

- name: set INIT status
service: name=prometheus enabled=yes
service: name=prometheus enabled=yes state=started

- name: copy prometheus main config file from role's default, if necessary
template:
Expand Down