ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 405d64ffe1cbfd76fc0683c4cb3eda4aa04e2af8
parent 38322b5ff0c3aa2d4c97f9b079f16ae14bf810cd
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 28 Jan 2021 23:33:01 +0100

node-exporter: update
1 file changed, 0 insertions(+), 12 deletions(-)
diff --git a/roles/common/tasks/node-exporter.yml b/roles/common/tasks/node-exporter.yml
@@ -1,13 +1,5 @@
 ---
 
-- name: "[Alpine] Fail when not on edge"
-  fail:
-    msg: Prometheus Node-Exporter is currently only supported on Alpine's edge repos!
-  when: 
-    - ansible_distribution == "Alpine" 
-    - system.alpineVersion != "edge"
-    - services.prometheus_node_exporter.enable is true
-
 - name: "[Alpine] Install package: node-exporter"
   apk:
     name: prometheus-node-exporter

@@ -15,7 +7,6 @@
     update_cache: yes
   when: 
     - ansible_distribution == "Alpine"
-    - system.alpineVersion == "edge"
     - services.prometheus_node_exporter.enable is true 
 
 - name: "[Archlinux] Install package: prometheus-node-exporter"

@@ -35,7 +26,6 @@
     state: started
   when: 
     - ansible_service_mgr == "openrc" 
-    - system.alpineVersion == "edge"
     - services.prometheus_node_exporter is true 
 
 - name: "[systemd] Enable and start service: prometheus-node-exporter"

@@ -55,7 +45,6 @@
     state: stopped
   when: 
     - ansible_service_mgr == "openrc" 
-    - system.alpineVersion == "edge"
     - services.prometheus_node_exporter is false 
 
 - name: "[systemd] Disable and stop service: prometheus-node-exporter"

@@ -74,7 +63,6 @@
     state: absent
   when: 
     - ansible_distribution == "Alpine"
-    - system.alpineVersion == "edge"
     - services.prometheus_node_exporter.enable is false 
 
 - name: "[Archlinux] Remove package: prometheus-node-exporter"