General Enhancements #4

Merged
me merged 64 commits from dev into main 2025-06-16 12:33:16 -07:00
10 changed files with 497 additions and 71 deletions
Showing only changes of commit f9421585c9 - Show all commits

View File

@ -9,12 +9,8 @@
set_fact:
lynis_temp_file: "{{ lynis_file }}.tmp"
- name: General | Tests | Lynis | Rename Old Install
shell: mv "/usr/local/lynis" "/usr/local/src/"
ignore_errors: yes
- name: General | Tests | Lynis | Install
git:
git:
repo: https://github.com/CISOfy/lynis
dest: "{{ lynis_install_dir }}"
clone: yes
@ -22,7 +18,7 @@
ignore_errors: yes
- name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!)
file:
file:
path: "{{ lynis_install_dir }}"
state: directory
mode: '0644'
@ -31,12 +27,12 @@
recurse: yes
- name: General | Tests | Lynis | Ensure Permissions 2
file:
file:
path: "{{ lynis_install_dir }}/lynis"
mode: '0755'
- name: General | Tests | Lynis | Ensure Folder Permissions
file:
file:
path: "{{ lynis_install_dir }}"
state: directory
mode: '0755'