From: Alexander Barton Date: Thu, 17 Dec 2015 16:18:30 +0000 (+0100) Subject: check-mk-agent: Configure xinetd(8) on Debian <8 hosts X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c7a0e7133ca24fd76ff232bee1a9002371129f1;p=AnsibleRoles.git check-mk-agent: Configure xinetd(8) on Debian <8 hosts --- diff --git a/roles/check-mk-agent/meta/main.yml b/roles/check-mk-agent/meta/main.yml index 6bf2e7c..3d3b0eb 100644 --- a/roles/check-mk-agent/meta/main.yml +++ b/roles/check-mk-agent/meta/main.yml @@ -3,3 +3,4 @@ dependencies: - { role: os-base } + - { role: xinetd, when: "ansible_distribution_major_version < '8'" } diff --git a/roles/check-mk-agent/tasks/main.yml b/roles/check-mk-agent/tasks/main.yml index 4b36238..af00a03 100644 --- a/roles/check-mk-agent/tasks/main.yml +++ b/roles/check-mk-agent/tasks/main.yml @@ -53,6 +53,20 @@ 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