Use command instead of shell
Signed-off-by: Radovan Sroka <rsroka@redhat.com>
This commit is contained in:
committed by
Sergei Petrosian
parent
e9ddf8804c
commit
2c0be7a450
+1
-1
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user