Fixes and Enhancements (#48)
* Fix metasplot install if /usr/local/bin is not active in path yet. Also use variables. * Use plocate on openSUSE. Supposed to be faster. Cannot have both m and p installed at the same time and p comes with the base system. * Include wheel group for user as well. * Finalize GNOME settings, go with RC commands instead of dconf module. * Add hostname to report files. * Add TBD for shared home situation. * Fix cron service for Fedora. * Disable the power button. * Fix Fedora ffmpeg issues. Move package modules from flatpak playbook. Uninstall firefox from package manager. * Enhance update function to handle shared home between multiple distributions. * Allow keeping local backups of files. * Replace flatpak repair check with accept flag instead of battery so that any automated update runs do the cleanup. * Begin hoarding settings files. * Start building out a FireFox profile. * Fix extra comment command in comment. * Add an All option to completely compress the entire directory. * Codium is still broken on all tested systems, hide from Favorites. * Add scipt to handle audio files. Also can convert to 432Hz. * Use cut instead of awk to get rid of first parameter. Fixes bugs when spaces are allowed in the filenames. * Enhancements and bugfix for "$freq". * Add playbook for desktop VPN clients. Start with Mullvad. * Add website to the seeded projects. * Add firmware updates to the update function. * Allow `fwupdmgr` to fail and have `update` still continue. * Shorten lines. * Uninstall DeltaChat. * Separate the firmware update into its own function. * Add alias for cloning one folder to another without using rm/cp. * Fix typo in rsync. * Go ahead and add extra options. * Make the files human readable size descriptions. * Remove unnecessary v, P does good enough.
This commit is contained in:
@ -10,3 +10,4 @@
|
||||
- sudo
|
||||
- video
|
||||
- render
|
||||
- wheel
|
||||
|
@ -66,6 +66,7 @@
|
||||
- sudo
|
||||
- video
|
||||
- render
|
||||
- wheel
|
||||
append: yes
|
||||
shell: "{{ user_shell }}"
|
||||
create_home: yes
|
||||
@ -170,10 +171,34 @@
|
||||
|
||||
{{ update_package_manager }}
|
||||
{{ update_flatpak }}
|
||||
echo "*** Completed Successfully ***"
|
||||
return 0
|
||||
}
|
||||
function_update_firmware: |
|
||||
function update-firmware() {
|
||||
PROG=$FUNCNAME
|
||||
usage="Usage: $PROG [-y]
|
||||
$PROG is used to run the firmware updater in one swoop. Flow stops if
|
||||
any command returns a failure code. The hope is to run something as
|
||||
easy as 'pacman -Syyu' but for non-Arch systems.
|
||||
-y : Assume yes to any prompts."
|
||||
|
||||
echo "ERROR: $PROG experienced a problem and has aborted." >&2
|
||||
return 1
|
||||
unset OPTIND
|
||||
unset accept
|
||||
while getopts ":hy" opt; do
|
||||
case $opt in
|
||||
h) echo -e "$usage"
|
||||
return 0 ;;
|
||||
y) accept="-y" ;;
|
||||
*) echo "ERROR: -$OPTARG is not a recognized option." >&2
|
||||
echo -e "$usage"
|
||||
return 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
{{ update_firmware }}
|
||||
echo "*** Completed Successfully ***"
|
||||
return 0
|
||||
}
|
||||
alias_sync: alias sync='date && echo "Syncing!" && sync && date'
|
||||
export_editor: export EDITOR='vi'
|
||||
@ -388,6 +413,8 @@
|
||||
--branch dev ~/Code/ansible-dev
|
||||
git clone git@github.com:Hyperling/Docker \
|
||||
--branch dev ~/Code/docker-dev
|
||||
git clone git@github.com:Hyperling/Website \
|
||||
--branch dev ~/Code/website-dev
|
||||
git clone git@github.com:Hyperling/NixOS \
|
||||
--branch dev ~/Code/nixos-dev
|
||||
git clone git@github.com:Hyperling/BreakTheHabit \
|
||||
@ -422,6 +449,8 @@
|
||||
done
|
||||
echo -e "\nDone!\n"
|
||||
}
|
||||
alias_clone: |
|
||||
alias clone="rsync -auPh --delete"
|
||||
|
||||
- name: General | Account Management | Users | Files | Common Variable
|
||||
set_fact:
|
||||
@ -436,6 +465,7 @@
|
||||
{{ export_PS1 }}
|
||||
{{ alias_remount }}
|
||||
{{ function_update }}
|
||||
{{ function_update_firmware }}
|
||||
{{ alias_sync }}
|
||||
{{ export_editor }}
|
||||
{{ init_aliases }}
|
||||
@ -458,6 +488,7 @@
|
||||
{{ alias_code_reseed }}
|
||||
{{ function_clean_filenames }}
|
||||
{{ function_clean_filenames_tree }}
|
||||
{{ alias_clone }}
|
||||
|
||||
- name: General | Account Management | Users | Files | .bashrc
|
||||
blockinfile:
|
||||
|
@ -1,12 +1,17 @@
|
||||
---
|
||||
# Install Metasploit Framework
|
||||
|
||||
- name: General | Software | Metasploit | Facts
|
||||
set_fact:
|
||||
metasploit_installer: msfinstall
|
||||
when: ansible_system in ("Linux", "Darwin")
|
||||
|
||||
- name: General | Software | Metasploit | Install
|
||||
shell: "{{ item }}"
|
||||
loop:
|
||||
- curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
|
||||
- chmod 755 msfinstall
|
||||
- mkdir -p /usr/local/bin/
|
||||
- mv ./msfinstall /usr/local/bin/msfinstall
|
||||
- msfinstall
|
||||
- "curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > {{ metasploit_installer }}"
|
||||
- "chmod 755 {{ metasploit_installer }}"
|
||||
- "mkdir -p {{ global_bin }}"
|
||||
- "mv ./msfinstall {{ global_bin }}/{{ metasploit_installer }}"
|
||||
- "{{ global_bin }}/{{ metasploit_installer }}"
|
||||
when: ansible_system in ("Linux", "Darwin")
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
- name: General | Tests | Lynis | Set Facts
|
||||
set_fact:
|
||||
lynis_file: "{{ user_user.home }}/Reports/{{ lynis_report }}"
|
||||
lynis_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ lynis_report }}"
|
||||
|
||||
- name: General | Tests | Lynis | Set Facts 2
|
||||
set_fact:
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
- name: General | Tests | nmap | Set Facts
|
||||
set_fact:
|
||||
nmap_file: "{{ user_user.home }}/Reports/{{ nmap_report }}"
|
||||
nmap_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ nmap_report }}"
|
||||
nmap_separator: "\n*******************************\n"
|
||||
|
||||
- name: General | Tests | nmap | Set Facts 2
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
- name: General | Tests | Services | Set Facts
|
||||
set_fact:
|
||||
services_report_file: "{{ user_user.home }}/Reports/services.txt"
|
||||
services_enabled_file: "{{ user_user.home }}/Reports/services-enabled.txt"
|
||||
services_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services.txt"
|
||||
services_enabled_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services-enabled.txt"
|
||||
services_command: "systemctl list-unit-files"
|
||||
|
||||
- name: General | Tests | Services | Create Main Report
|
||||
|
Reference in New Issue
Block a user