Use command instead of shell

Signed-off-by: Radovan Sroka <rsroka@redhat.com>
This commit is contained in:
Radovan Sroka
2025-01-07 13:06:03 +01:00
committed by Sergei Petrosian
parent e9ddf8804c
commit 2c0be7a450
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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: