From a8389a7c0ae1fad45e82bef7de5b02f1a6523613 Mon Sep 17 00:00:00 2001 From: Julien Riou Date: Sat, 27 Jul 2024 19:29:14 +0200 Subject: [PATCH] feat: Enable Nagios and Apache Signed-off-by: Julien Riou --- tasks/nagios.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/nagios.yml b/tasks/nagios.yml index e04f70e..6a7d1ad 100644 --- a/tasks/nagios.yml +++ b/tasks/nagios.yml @@ -1,6 +1,6 @@ --- - name: Install nagios - ansible.builtin.apt: + ansible.builtin.package: name: - nagios4 - git @@ -75,6 +75,7 @@ ansible.builtin.service: name: nagios4 state: reloaded + enabled: true - name: Configure htaccess for the web interface ansible.builtin.template: @@ -107,6 +108,7 @@ ansible.builtin.service: name: apache2 state: restarted + enabled: true - name: Allow HTTP from vpn ansible.builtin.iptables: