diff --git a/tasks/main.yml b/tasks/main.yml index ca47911..f67e589 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,6 +37,11 @@ - reload nagios-nrpe-server when: ansible_distribution == 'Debian' +- name: ensure /etc/nagios/nrpe.d exists + file: + path: /etc/nagios/nrpe.d + state: directory + - name: ensure nrpe is running service: name: nrpe diff --git a/templates/nrpe.cfg.j2 b/templates/nrpe.cfg.j2 index 56fa0e2..57282c7 100644 --- a/templates/nrpe.cfg.j2 +++ b/templates/nrpe.cfg.j2 @@ -368,5 +368,4 @@ command[check_apt]=/usr/lib/nagios/plugins/check_apt # This directive allows you to include definitions from config files (with a # .cfg extension) in one or more directories (with recursion). -#include_dir= -#include_dir= +include_dir=/etc/nagios/nrpe.d