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 - name: Create texfile collector dir
file: file:
path: "{{ node_exporter_textfile_dir }}" path: "{{ node_exporter_textfile_dir }}"
......
...@@ -58,12 +58,3 @@ ...@@ -58,12 +58,3 @@
group: "{{ node_exporter_system_group }}" group: "{{ node_exporter_system_group }}"
notify: restart node_exporter notify: restart node_exporter
when: not ansible_check_mode 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 @@ ...@@ -6,22 +6,25 @@
- "{{ ansible_distribution | lower }}.yml" - "{{ ansible_distribution | lower }}.yml"
- "{{ ansible_os_family | lower }}.yml" - "{{ ansible_os_family | lower }}.yml"
tags: tags:
- always - node_exporter_install
- node_exporter_configure
- node_exporter_run
- import_tasks: preflight.yml - import_tasks: preflight.yml
tags: tags:
- install - node_exporter_install
- configure - node_exporter_configure
- node_exporter_run
- import_tasks: install.yml - import_tasks: install.yml
become: true become: true
tags: tags:
- install - node_exporter_install
- import_tasks: configure.yml - import_tasks: configure.yml
become: true become: true
tags: tags:
- configure - node_exporter_configure
- name: Ensure Node Exporter is enabled on boot - name: Ensure Node Exporter is enabled on boot
become: true become: true
...@@ -30,4 +33,4 @@ ...@@ -30,4 +33,4 @@
name: node_exporter name: node_exporter
enabled: true enabled: true
tags: 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