diff --git a/tasks/hardness_check_lynis.yml b/tasks/hardness_check_lynis.yml index 54d2d5f..cf5cea5 100644 --- a/tasks/hardness_check_lynis.yml +++ b/tasks/hardness_check_lynis.yml @@ -9,4 +9,6 @@ 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 + ansible.builtin.file: + path: "{{ lynis_report }}" + mode: '0444' \ No newline at end of file