Skip to content

node_exporter as a nomad job - #282

Draft
classabbyamp wants to merge 4 commits into
void-linux:masterfrom
classabbyamp:node-exporter-job
Draft

classabbyamp wants to merge 4 commits into
void-linux:masterfrom
classabbyamp:node-exporter-job

Conversation

@classabbyamp

Copy link
Copy Markdown
Member

not yet deployed

TODO:

diff --git a/tasks/main.yml b/tasks/main.yml
index 752aea3..a63ce1f 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -5,27 +5,21 @@
     state: present
 
 - name: Configure Firewall
-  ansible.builtin.copy:
-    src: node_exporter.rules
-    dest: /etc/iptables.d/node_exporter.rules
-    owner: root
-    group: root
-    mode: "0640"
+  ansible.builtin.file:
+    path: /etc/iptables.d/node_exporter.rules
+    state: absent
   notify:
     - iptables
 
 - name: Enable Service
   ansible.builtin.service:
     name: node_exporter
-    enabled: true
+    enabled: false
 
 - name: Install Consul Service
-  ansible.builtin.template:
-    src: node_exporter.hcl
-    dest: "{{ node_exporter_consul_path }}"
-    owner: root
-    group: root
-    mode: "0644"
+  ansible.builtin.file:
+    path: "{{ node_exporter_consul_path }}"
+    state: absent
   when:
     - node_exporter_consul_path is defined
     - node_exporter_consul_token is defined

@classabbyamp
classabbyamp marked this pull request as draft November 3, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant