mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 20:03:04 +00:00
e99b807340
Signed-off-by: gardar <gardar@users.noreply.github.com>
45 lines
923 B
YAML
45 lines
923 B
YAML
---
|
|
- name: Preflight
|
|
ansible.builtin.include_tasks: preflight.yml
|
|
tags:
|
|
- alertmanager_install
|
|
- alertmanager_configure
|
|
- alertmanager_run
|
|
|
|
- name: Install
|
|
ansible.builtin.include_tasks:
|
|
file: install.yml
|
|
apply:
|
|
become: true
|
|
tags:
|
|
- alertmanager_install
|
|
|
|
- name: SELinux
|
|
ansible.builtin.include_tasks:
|
|
file: selinux.yml
|
|
apply:
|
|
become: true
|
|
when: ansible_selinux.status == "enabled"
|
|
tags:
|
|
- alertmanager_configure
|
|
|
|
- name: Configure
|
|
ansible.builtin.include_tasks:
|
|
file: configure.yml
|
|
apply:
|
|
become: true
|
|
tags:
|
|
- alertmanager_configure
|
|
|
|
- name: Ensure alertmanager service is started and enabled
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
name: alertmanager
|
|
state: started
|
|
enabled: true
|
|
tags:
|
|
- alertmanager_run
|
|
|
|
- name: Flush alertmangaer handlers after run.
|
|
ansible.builtin.meta: flush_handlers
|