diff --git a/tasks/hardness_check_lynis.yml b/tasks/hardness_check_lynis.yml index 5fb1d52..2362bf8 100644 --- a/tasks/hardness_check_lynis.yml +++ b/tasks/hardness_check_lynis.yml @@ -6,7 +6,7 @@ force: yes - name: Run Lynis Audit System - command: /usr/local/lynis/lynis audit system > "{{ lynis_report }}" + shell: /usr/local/lynis/lynis audit system > "{{ lynis_report }}" 2>&1 - name: Make Lynis Report Readable - command: chmod 444 "{{ lynis_report }}" \ No newline at end of file + shell: chmod 444 "{{ lynis_report }}" \ No newline at end of file