-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathmain.yml
More file actions
55 lines (51 loc) · 1.64 KB
/
Copy pathmain.yml
File metadata and controls
55 lines (51 loc) · 1.64 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- name: Preflight
ansible.builtin.include_tasks:
file: preflight.yml
tags:
- node_exporter_install
- node_exporter_configure
- node_exporter_run
- name: Install
ansible.builtin.include_role:
name: prometheus.prometheus._common
tasks_from: install.yml
vars:
_common_local_cache_path: "{{ node_exporter_local_cache_path }}"
_common_binaries: "{{ _node_exporter_binaries }}"
_common_binary_install_dir: "{{ node_exporter_binary_install_dir }}"
_common_binary_url: "{{ node_exporter_binary_url }}"
_common_checksums_url: "{{ node_exporter_checksums_url }}"
_common_system_group: "{{ node_exporter_system_group }}"
_common_system_user: "{{ node_exporter_system_user }}"
_common_config_dir: "{{ node_exporter_config_dir }}"
_common_binary_unarchive_opts: ['--strip-components=1']
_common_remote_download: "{{ node_exporter_remote_download }}"
_common_remote_cache_path: "{{ node_exporter_remote_cache_path }}"
tags:
- node_exporter_install
- name: SELinux
ansible.builtin.include_role:
name: prometheus.prometheus._common
tasks_from: selinux.yml
vars:
_common_selinux_port: "{{ node_exporter_web_listen_address | urlsplit('port') }}"
when: ansible_facts['selinux'].status == "enabled"
tags:
- node_exporter_configure
- name: Configure
ansible.builtin.include_tasks:
file: configure.yml
tags:
- node_exporter_configure
- name: Ensure Node Exporter is enabled on boot
become: true
ansible.builtin.systemd:
daemon_reload: true
name: node_exporter
enabled: true
state: started
when:
- not ansible_check_mode
tags:
- node_exporter_run