]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
check-mk-agent: Configure xinetd(8) on Debian <8 hosts
authorAlexander Barton <alex@barton.de>
Thu, 17 Dec 2015 16:18:30 +0000 (17:18 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 17 Dec 2015 16:18:30 +0000 (17:18 +0100)
roles/check-mk-agent/meta/main.yml
roles/check-mk-agent/tasks/main.yml

index 6bf2e7cd19bea8f6c77c2bac7a0e60050a119ec5..3d3b0eb225991a25027d58e39321b8eaa1b67e29 100644 (file)
@@ -3,3 +3,4 @@
 
 dependencies:
   - { role: os-base }
+  - { role: xinetd, when: "ansible_distribution_major_version < '8'" }
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