2022-09-22 14:38:42 +00:00
|
|
|
---
|
2024-10-15 17:08:40 +00:00
|
|
|
- name: Configure
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: prometheus.prometheus._common
|
|
|
|
tasks_from: configure.yml
|
|
|
|
vars:
|
|
|
|
_common_system_user: "{{ node_exporter_system_user }}"
|
|
|
|
_common_system_group: "{{ node_exporter_system_group }}"
|
|
|
|
_common_config_dir: "{{ node_exporter_config_dir }}"
|
|
|
|
_common_tls_server_config: "{{ node_exporter_tls_server_config }}"
|
|
|
|
_common_http_server_config: "{{ node_exporter_http_server_config }}"
|
|
|
|
_common_basic_auth_users: "{{ node_exporter_basic_auth_users }}"
|
|
|
|
tags:
|
|
|
|
- node_exporter
|
|
|
|
- configure
|
|
|
|
- node_exporter_configure
|
2022-09-22 14:38:42 +00:00
|
|
|
|
|
|
|
- name: Create textfile collector dir
|
2022-09-23 12:07:54 +00:00
|
|
|
ansible.builtin.file:
|
2022-09-22 14:38:42 +00:00
|
|
|
path: "{{ node_exporter_textfile_dir }}"
|
|
|
|
state: directory
|
2023-03-09 17:56:31 +00:00
|
|
|
owner: "{{ node_exporter_system_user }}"
|
|
|
|
group: "{{ node_exporter_system_group }}"
|
2022-09-22 14:38:42 +00:00
|
|
|
mode: u+rwX,g+rwX,o=rX
|
2024-10-15 17:08:40 +00:00
|
|
|
become: true
|
2022-09-22 14:38:42 +00:00
|
|
|
when: node_exporter_textfile_dir | length > 0
|
2024-10-15 17:08:40 +00:00
|
|
|
tags:
|
|
|
|
- node_exporter
|
|
|
|
- configure
|
|
|
|
- node_exporter_configure
|