Change shell chmod to file module.

This commit is contained in:
Hyperling 2021-01-31 13:55:18 -06:00
parent a53ec10a99
commit 6336715b98

View File

@ -9,4 +9,6 @@
shell: "{{ lynis_install_dir }}/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 - name: Make Lynis Report Readable
shell: chmod 444 "{{ lynis_report }}" ansible.builtin.file:
path: "{{ lynis_report }}"
mode: '0444'