OCD: Call lynis from the install directory variable. Happened to be the same on all systems so it worked on FreeBSD.

This commit is contained in:
Hyperling 2021-01-31 13:36:54 -06:00
parent f66e39ad6e
commit 9313d1a7ed

View File

@ -6,7 +6,7 @@
force: yes force: yes
- name: Run Lynis Audit System - 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 - name: Make Lynis Report Readable
shell: chmod 444 "{{ lynis_report }}" shell: chmod 444 "{{ lynis_report }}"