Skip to content

Commit

Permalink
Use command instead of shell
Browse files Browse the repository at this point in the history
Signed-off-by: Radovan Sroka <[email protected]>
  • Loading branch information
radosroka committed Dec 20, 2024
1 parent ec4b95b commit 1764e7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tests/tests_check_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 1764e7d

Please sign in to comment.