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 ...
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: