]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
check-mk-agent: Only install "check-mk-agent-logwatch" on Debian 7 & 8
authorAlexander Barton <alex@barton.de>
Mon, 19 Feb 2018 17:07:19 +0000 (18:07 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 19 Feb 2018 17:07:19 +0000 (18:07 +0100)
The check-mk-agent and check-mk-agent-logwatch packages have been removed
in Debian 9, and there is only a "check-mk-agent" package provided by
Check_MK itself (no "check-mk-agent-logwatch"). So assume that this
package has been added to an internal repository, but don't try to install
"check-mk-agent-logwatch" on Debian 9 or newer ...

roles/check-mk-agent/tasks/main.yml

index abc3006557e929a41a5f3981535e1428d8c97b7c..8dd0361f81d8bf0b0291bf085720ad74162882b3 100644 (file)
@@ -21,7 +21,7 @@
   apt: >
     state=installed
     name=check-mk-agent-logwatch
-  when: "ansible_distribution_major_version >= '7'"
+  when: "ansible_distribution_major_version >= '7' and ansible_distribution_major_version < '9'"
 
 - name: test for systemd unit files
   tags: