diff --git a/tasks/general/tests/lynis.yml b/tasks/general/tests/lynis.yml index 9aeffac..47a9b44 100644 --- a/tasks/general/tests/lynis.yml +++ b/tasks/general/tests/lynis.yml @@ -12,11 +12,16 @@ file: path: "{{ lynis_install_dir }}" state: directory - mode: '0755' + mode: '0644' owner: root group: root recurse: yes +- name: General | Tests | Lynis | Ensure Permissions 2 + file: + path: "{{ lynis_install_dir }}/lynis" + mode: '0755' + - name: General | Tests | Lynis | Run System Audit shell: "{{ lynis_install_dir }}/lynis audit system --no-colors > {{ lynis_report }} 2>&1" args: