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.
This commit is contained in:
2022-03-27 08:14:06 -05:00
committed by GitHub
parent 791dc245a6
commit cdfb257b21
12 changed files with 131 additions and 14 deletions

View File

@ -7,10 +7,32 @@
set_fact:
user_shell: "{{ bash_exec.stdout }}"
- name: General | Account Management | Users | Use ZSH (Arch+Manjaro)
set_fact:
user_shell: "{{ zsh_exec.stdout }}"
- name: General | Account Management | Users | Allow BASH (Arch)
lineinfile:
path: /etc/shells
regexp: "{{ bash_exec.stdout }}"
line: "{{ bash_exec.stdout }}"
insertbefore: "# End of file"
backup: yes
create: no
state: present
when: ansible_distribution == "Archlinux"
#- name: General | Account Management | Users | Use ZSH (Arch+Manjaro)
# set_fact:
# user_shell: "{{ zsh_exec.stdout }}"
# when: ansible_distribution == "Archlinux"
#
#- name: General | Account Management | Users | Allow ZSH (Arch)
# lineinfile:
# path: /etc/shells
# regexp: "{{ zsh_exec.stdout }}"
# line: "{{ zsh_exec.stdout }}"
# insertbefore: "# End of file"
# backup: yes
# create: no
# state: present
# when: ansible_distribution == "Archlinux"
## Root ##

View File

@ -68,3 +68,28 @@
file:
path: "{{ user_root.home }}/bin/scm-dev.sh"
mode: '0755'
- name: General | Scripts | Root | scm-local.sh
blockinfile:
path: "{{ user_root.home }}/bin/scm-local.sh"
block: |
# 20220312 - Make life easier for development! Especially when Github can't be reached.
## Variables ##
## Main ##
time ansible-playbook /mnt/leet/Code/Ansible/ansible-pull/local.yml
marker: '{mark}'
marker_begin: "#!{{ bash_exec.stdout }}"
marker_end: "exit 0"
state: present
create: yes
- name: General | Scripts | Root | scm-local.sh Permissions
file:
path: "{{ user_root.home }}/bin/scm-local.sh"
mode: '0755'

View File

@ -68,3 +68,28 @@
file:
path: "{{ user_user.home }}/bin/scm-dev.sh"
mode: '0755'
- name: General | Scripts | User | scm-local.sh
blockinfile:
path: "{{ user_user.home }}/bin/scm-local.sh"
block: |
# 20220312 - Make life easier for development! Especially when Github can't be reached.
## Variables ##
## Main ##
time sudo ansible-playbook /mnt/leet/Code/Ansible/ansible-pull/local.yml
marker: '{mark}'
marker_begin: "#!{{ bash_exec.stdout }}"
marker_end: "exit 0"
state: present
create: yes
- name: General | Scripts | User | scm-local.sh Permissions
file:
path: "{{ user_user.home }}/bin/scm-local.sh"
mode: '0755'

View File

@ -51,6 +51,15 @@
- "{{ tar }}"
state: present
- name: General | Software | Packages | Install Software (DEV)
package:
name:
- "{{ microcode_amd }}"
- "{{ microcode_intel }}"
state: present
when: branch == "dev"
ignore_errors: yes
- name: General | Software | Services | Install CROND (Looking at you, Fedora)
package:
name: cronie
@ -63,6 +72,14 @@
state: present
when: ansible_distribution == "Debian"
- name: General | Software | Services | Install "Bloat" (Looking at you, Arch Base)
package:
name:
- which
- cronie
state: present
when: ansible_distribution == "Archlinux"
- name: General | Software | Packages | Update Software (Disabled)
package:
name:

View File

@ -1,6 +1,10 @@
---
# 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
@ -24,9 +28,10 @@
mode: '0755'
- name: General | Tests | Lynis | Run System Audit
shell: "{{ lynis_install_dir }}/lynis audit system --no-colors > {{ lynis_report }} 2>&1"
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: