25 lines
755 B
YAML
25 lines
755 B
YAML
- name: Install Alertmanager
|
|
import_role:
|
|
name: cloudalchemy.alertmanager
|
|
public: yes
|
|
vars:
|
|
alertmanager_web_external_url: "http://{{ alertmanager_domain }}{{ alertmanager_web_path }}"
|
|
alertmanager_config_flags_extra:
|
|
web.route-prefix: /
|
|
alertmanager_web_listen_address: "0.0.0.0:{{ alertmanager_port }}"
|
|
|
|
- name: Configure Nginx for Alertmaneger
|
|
import_role:
|
|
name: nginx
|
|
vars:
|
|
nginx_config_file: "{{ inventory_hostname }}.d/alertmanager.conf"
|
|
nginx_server:
|
|
locations:
|
|
- path: "{{ alertmanager_web_path }}/"
|
|
basic_auth:
|
|
file: .htpasswd.alertmanager
|
|
password: "{{ alertmanager_password }}"
|
|
proxy_pass:
|
|
port: "{{ alertmanager_port }}"
|
|
path: /
|