Skip to content
Snippets Groups Projects
Unverified Commit c8e27969 authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

Better tags and configuration handling (#66)

parent 00e37ce1
No related branches found
No related tags found
No related merge requests found
---
- name: Copy the Node Exporter systemd service file
template:
src: node_exporter.service.j2
dest: /etc/systemd/system/node_exporter.service
owner: root
group: root
mode: 0644
notify: restart node_exporter
- name: Create texfile collector dir
file:
path: "{{ node_exporter_textfile_dir }}"
......
......@@ -58,12 +58,3 @@
group: "{{ node_exporter_system_group }}"
notify: restart node_exporter
when: not ansible_check_mode
- name: Copy the Node Exporter systemd service file
template:
src: node_exporter.service.j2
dest: /etc/systemd/system/node_exporter.service
owner: root
group: root
mode: 0644
notify: restart node_exporter
......@@ -6,22 +6,25 @@
- "{{ ansible_distribution | lower }}.yml"
- "{{ ansible_os_family | lower }}.yml"
tags:
- always
- node_exporter_install
- node_exporter_configure
- node_exporter_run
- import_tasks: preflight.yml
tags:
- install
- configure
- node_exporter_install
- node_exporter_configure
- node_exporter_run
- import_tasks: install.yml
become: true
tags:
- install
- node_exporter_install
- import_tasks: configure.yml
become: true
tags:
- configure
- node_exporter_configure
- name: Ensure Node Exporter is enabled on boot
become: true
......@@ -30,4 +33,4 @@
name: node_exporter
enabled: true
tags:
- run
- node_exporter_run
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment