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
|
when: aide_db_template is not none
|
||||||
|
|
||||||
# - name: Print Header
|
# - name: Print Header
|
||||||
# ansible.builtin.shell: head /etc/aide.conf || true
|
# ansible.builtin.command: head /etc/aide.conf || true
|
||||||
|
|
||||||
- name: Initialize AIDE database
|
- name: Initialize AIDE database
|
||||||
when: aide_init | bool
|
when: aide_init | bool
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
aide_cron_check: true
|
aide_cron_check: true
|
||||||
aide_cron_interval: "0 12 * * *"
|
aide_cron_interval: "0 12 * * *"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Print crontab 1
|
# - name: Print crontab 1
|
||||||
ansible.builtin.shell: cat /etc/crontab
|
# ansible.builtin.command: cat /etc/crontab
|
||||||
|
|
||||||
- name: Check file content
|
- name: Check file content
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
@@ -32,8 +32,8 @@
|
|||||||
vars:
|
vars:
|
||||||
aide_cron_check: false
|
aide_cron_check: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Print crontab 2
|
# - name: Print crontab 2
|
||||||
ansible.builtin.shell: cat /etc/crontab
|
# ansible.builtin.command: cat /etc/crontab
|
||||||
|
|
||||||
- name: Check file content
|
- name: Check file content
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user