Hyperling cdfb257b21
Fixes and Enhancements (#24)
* Add TODO.

* Add note.

* Fix hang from NFS sometimes not being up.

* Remove noauto so that `mount -a` works.

* Allow Arch to use BASH.

* Add programs needed for playbook but missing from Arch Base.

* Explicit rename of old install since Github connection is unreliable. Call executable from current directory after chdir.

* Ensure shells are set up correctly on Arch.

* Begin explicitly using microcode packages on dev machines.

* Fix _ typos to -.

* Add Delta Chat.

* Fix equals typo and allow command to fail.

* Delta Chat Desktop works great, add it to Favorites.

* Add Element.

* Add Element.

* Change spot for Element.

* Add new file(s) to call in-development project.

* Remove extra comma.

* Change FreeBSD update checker to weekly.

* Use Github again for pulling updates.
2022-03-27 08:14:06 -05:00

40 lines
1004 B
YAML

---
# Lynis hardness check.
- name: General | Tests | Lynis | Rename Old Install
shell: mv "/usr/local/lynis" "/usr/local/src/"
ignore_errors: yes
- name: General | Tests | Lynis | Install
git:
repo: https://github.com/CISOfy/lynis
dest: "{{ lynis_install_dir }}"
clone: yes
force: yes
ignore_errors: yes
- name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!)
file:
path: "{{ lynis_install_dir }}"
state: directory
mode: '0644'
owner: root
group: "{{ root_group }}"
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 audit system --no-colors > {{ lynis_report }} 2>&1"
args:
executable: "{{ bash_exec.stdout }}"
chdir: "{{ lynis_install_dir }}"
- name: General | Tests | Lynis | Make Report Readable
file:
path: "{{ lynis_report }}"
mode: '0777'