From 43ec7d93fc1e8ac4b1d9114b4b8a3fc353fb9907 Mon Sep 17 00:00:00 2001 From: Radovan Sroka Date: Fri, 20 Dec 2024 16:19:25 +0100 Subject: [PATCH] Use command instead of shell Signed-off-by: Radovan Sroka --- tasks/main.yml | 2 +- tests/tests_check_cron.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 58571c0..2f70c7a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -26,7 +26,7 @@ when: aide_db_template is not none # - name: Print Header -# ansible.builtin.shell: head /etc/aide.conf || true +# ansible.builtin.command: head /etc/aide.conf || true - name: Initialize AIDE database when: aide_init | bool diff --git a/tests/tests_check_cron.yml b/tests/tests_check_cron.yml index 26cedec..9d2c2b1 100644 --- a/tests/tests_check_cron.yml +++ b/tests/tests_check_cron.yml @@ -11,7 +11,7 @@ aide_cron_interval: "0 12 * * *" tasks: - name: Print crontab 1 - ansible.builtin.shell: cat /etc/crontab + ansible.builtin.command: cat /etc/crontab - name: Check file content ansible.builtin.lineinfile: @@ -33,7 +33,7 @@ aide_cron_check: false tasks: - name: Print crontab 2 - ansible.builtin.shell: cat /etc/crontab + ansible.builtin.command: cat /etc/crontab - name: Check file content ansible.builtin.lineinfile: