2022-09-22 14:38:42 +00:00
|
|
|
---
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Preflight
|
2023-04-17 09:58:55 +00:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: preflight.yml
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
2024-10-15 17:01:13 +00:00
|
|
|
- alertmanager
|
|
|
|
- install
|
|
|
|
- configure
|
2022-09-22 14:38:42 +00:00
|
|
|
- alertmanager_install
|
|
|
|
- alertmanager_configure
|
|
|
|
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Install
|
2024-10-15 17:01:13 +00:00
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: prometheus.prometheus._common
|
|
|
|
tasks_from: install.yml
|
|
|
|
vars:
|
|
|
|
_common_local_cache_path: "{{ alertmanager_local_cache_path }}"
|
|
|
|
_common_binaries: "{{ _alertmanager_binaries }}"
|
|
|
|
_common_binary_install_dir: "{{ alertmanager_binary_install_dir }}"
|
|
|
|
_common_binary_url: "{{ alertmanager_binary_url }}"
|
|
|
|
_common_checksums_url: "{{ alertmanager_checksums_url }}"
|
|
|
|
_common_system_group: "{{ alertmanager_system_group }}"
|
|
|
|
_common_system_user: "{{ alertmanager_system_user }}"
|
|
|
|
_common_config_dir: "{{ alertmanager_config_dir }}"
|
|
|
|
_common_binary_unarchive_opts: ['--strip-components=1']
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
2024-10-15 17:01:13 +00:00
|
|
|
- alertmanager
|
|
|
|
- install
|
2022-09-22 14:38:42 +00:00
|
|
|
- alertmanager_install
|
|
|
|
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: SELinux
|
2024-10-15 17:01:13 +00:00
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: prometheus.prometheus._common
|
|
|
|
tasks_from: selinux.yml
|
|
|
|
vars:
|
|
|
|
_common_selinux_port: "{{ alertmanager_web_listen_address | urlsplit('port') }}"
|
2022-09-22 14:38:42 +00:00
|
|
|
when: ansible_selinux.status == "enabled"
|
|
|
|
tags:
|
2024-10-15 17:01:13 +00:00
|
|
|
- alertmanager
|
|
|
|
- configure
|
2022-09-22 14:38:42 +00:00
|
|
|
- alertmanager_configure
|
|
|
|
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Configure
|
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: configure.yml
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
2024-10-15 17:01:13 +00:00
|
|
|
- alertmanager
|
|
|
|
- configure
|
2022-09-22 14:38:42 +00:00
|
|
|
- alertmanager_configure
|