]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/check-mk-agent/tasks/main.yml
check-mk-agent: Add "systemd" tag to task checking for service file
[AnsibleRoles.git] / roles / check-mk-agent / tasks / main.yml
index b84a240971e172254ab255d5973df5c2019acd79..0e59f1872966e856cd080eae8c561d8bd08d2dac 100644 (file)
   apt: >
     state=present
     name=check-mk-agent-logwatch
-  when: "ansible_distribution_major_version|int >= 7 and ansible_distribution_major_version < '9'"
+  when: "ansible_distribution_major_version|int >= 7 and ansible_distribution_major_version|int < 9"
 
 - name: test for systemd unit files
   tags:
     - check_mk
     - monitoring
     - packages
+    - systemd
   stat: path=/etc/systemd/system/check_mk.socket
   when: "ansible_distribution_major_version|int >= 8"
   check_mode: no
@@ -80,9 +81,6 @@
 - meta: flush_handlers
   tags:
     - check_mk
-    - monitoring
-    - packages
-    - systemd
 
 - name: ensure "check_mk.socket" is enabled and started
   tags: