]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/check-mk-agent/tasks/main.yml
check-mk-agent: Configure xinetd(8) on Debian <8 hosts
[AnsibleRoles.git] / roles / check-mk-agent / tasks / main.yml
index 4b36238be21c73695b212c94effc2d747c7933ea..af00a038e41ec2132f83008a57107177982d032e 100644 (file)
   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