forked from William-Yeh/ansible-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yml
31 lines (23 loc) · 808 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- hosts: all
become: True
tasks:
- include: 'tasks/main.yml'
handlers:
- include: 'handlers/main.yml'
vars_files:
- 'defaults/main.yml'
vars:
#prometheus_components: [ "prometheus" ]
#prometheus_components: [ "node_exporter" ]
#prometheus_components: [ "alertmanager" ]
prometheus_components: [ "prometheus", "node_exporter", "alertmanager" ]
#prometheus_alertmanager_version: git
#prometheus_rule_files:
# this_is_rule_1_InstanceDown:
# src: test/basic.rules
# dest: basic.rules
prometheus_alertmanager_url: "http://localhost:9093/"
#prometheus_alertmanager_conf: test/alertmanager.yml.j2
post_tasks:
- name: copy file_sd
copy: src="{{ playbook_dir }}/test/file_sd.yml" dest={{ prometheus_file_sd_config_path }}