From d8c17dad4b40f3d1ec1440e2b30076859c962af3 Mon Sep 17 00:00:00 2001 From: Julien Riou Date: Sat, 27 Jul 2024 09:51:20 +0200 Subject: [PATCH] fix: Invalid arguments in MOTD and Nagios Signed-off-by: Julien Riou --- tasks/motd.yml | 5 ++--- tasks/nagios.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tasks/motd.yml b/tasks/motd.yml index 2ad6df3..26dd543 100644 --- a/tasks/motd.yml +++ b/tasks/motd.yml @@ -8,9 +8,8 @@ ansible.builtin.shell: cmd: >- set -o pipefail - hostname | figlet -f /usr/share/figlet/smslant.flf" - args: - executable: /bin/bash + hostname | figlet -f /usr/share/figlet/smslant.flf + executable: /bin/bash register: _motd changed_when: true diff --git a/tasks/nagios.yml b/tasks/nagios.yml index 8a0d08a..8075580 100644 --- a/tasks/nagios.yml +++ b/tasks/nagios.yml @@ -69,7 +69,7 @@ ansible.builtin.copy: src: files/nagios/cgi.cfg dest: /etc/nagios4/cgi.cfg - mode: "0644" + mode: "0644" - name: Reload nagios ansible.builtin.service: