From 2c0be7a45060c8c1b2387b9b827ddf5c14677747 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 | 8 ++++---- 2 files changed, 5 insertions(+), 5 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..a62d332 100644 --- a/tests/tests_check_cron.yml +++ b/tests/tests_check_cron.yml @@ -10,8 +10,8 @@ aide_cron_check: true aide_cron_interval: "0 12 * * *" tasks: - - name: Print crontab 1 - ansible.builtin.shell: cat /etc/crontab + # - name: Print crontab 1 + # ansible.builtin.command: cat /etc/crontab - name: Check file content ansible.builtin.lineinfile: @@ -32,8 +32,8 @@ vars: aide_cron_check: false tasks: - - name: Print crontab 2 - ansible.builtin.shell: cat /etc/crontab +# - name: Print crontab 2 +# ansible.builtin.command: cat /etc/crontab - name: Check file content ansible.builtin.lineinfile: