summaryrefslogtreecommitdiff
path: root/roles/monitoring
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-05-10 00:19:23 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-05-10 00:19:23 +0200
commit6abc58229f057a63e1799c834538d5fb139c6e22 (patch)
tree80c6639e569e2e83640d7fcce5b39d258aa6dd06 /roles/monitoring
parentmake debian/ubuntu os release compare script much more generic (diff)
migrate all os release comparisons to use new filter
Diffstat (limited to 'roles/monitoring')
-rw-r--r--roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_smartmon.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_smartmon.yml b/roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_smartmon.yml
index 8da763cd..4825e552 100644
--- a/roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_smartmon.yml
+++ b/roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_smartmon.yml
@@ -5,7 +5,8 @@
state: present
- name: make sure smartd service is stopped and masked
- when: (ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) < 11) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_major_version | int) < 20)
+ when: (ansible_distribution == 'Debian' and (ansible_distribution_release | debian_release_compare('<', 'bullseye'))) or
+ (ansible_distribution == 'Ubuntu' and (ansible_distribution_release | ubuntu_release_compare('<', 'focal')))
systemd:
name: smartd.service
state: stopped