From 4db0d8ef1279b410957547d0cb3ebcac2f07a1fb Mon Sep 17 00:00:00 2001 From: rubenb Date: Mon, 23 Oct 2023 17:17:28 +0200 Subject: [PATCH] service should start on boot --- roles/config-nagios-nrpe/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/config-nagios-nrpe/tasks/main.yaml b/roles/config-nagios-nrpe/tasks/main.yaml index da477cb..b77d4e3 100644 --- a/roles/config-nagios-nrpe/tasks/main.yaml +++ b/roles/config-nagios-nrpe/tasks/main.yaml @@ -32,4 +32,10 @@ state: touch mode: '0644' notify: restart nagios-nrpe +#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# service should start on boot. +- name: service should start on boot + service: + name: "{{ nagios_nrpe_daemon }}" + enabled: yes #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file