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