notify:
- reload systemd daemon
+- name: enable xinetd configuration
+ tags:
+ - check_mk
+ lineinfile: >
+ dest=/etc/xinetd.d/check_mk
+ group=root
+ mode=644
+ owner=root
+ regexp="^[\s]*disable[\s]*="
+ state=absent
+ when: "ansible_distribution_major_version < '8'"
+ notify:
+ - restart "xinetd"
+
- meta: flush_handlers
tags:
- check_mk