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:
2024-01-23 09:43:42 -07:00
committed by GitHub
parent 392294fb45
commit 7519f23a81
20 changed files with 588 additions and 347 deletions

View File

@ -10,3 +10,4 @@
- sudo
- video
- render
- wheel

View File

@ -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: