diff options
Diffstat (limited to 'roles/monitoring/prometheus/exporter')
-rw-r--r-- | roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_smartmon.yml | 3 |
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 |