-
Notifications
You must be signed in to change notification settings - Fork 147
/
test.yml
39 lines (29 loc) · 1006 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
32
33
34
35
36
37
38
39
- hosts: all
become: True
gather_facts: False
pre_tasks:
- name: fix for python interpreter for managed host
include: tasks/fix-python.yml
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_version: git
#prometheus_node_exporter_version: git
#prometheus_alertmanager_version: git
#prometheus_rule_files:
# this_is_rule_1_InstanceDown:
# src: test/basic.rules
# dest: basic.rules
prometheus_alertmanager_hostport: "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 }}