Hyperling
791dc245a6
* Add volume key controls. * Add placeholder for LBRY app. * Refactor gui into gnome and packages. Remove deprecated lineinfiles. Enhance package management. * Variablize tar to fix FreeBSD. * Variablize tar to fix FreeBSD. * Take FreeBSD gui.yml refactor into account. * Unfinished changes to use self-signed cert so local traffic can hit https. Server starts fine, but getting "gnutls_handshake() failed: An unexpected TLS packet was received." on client's `git clone`. * Make D2D optional. FreeBSD is still having a hard time compiling it. * Use a block for Dash To Dock so only one ignore_errors is necessary. * Deprecate miner section since machines have been decommissioned. * Remove deprecated file. * Switch to lightdm on FreeBSD. * Automate GPU driver installation. * Updated DWM config and added TODO's. * Move lynis to src folder for cleanliness. * Remove debug. * Refactor for "shared" system type folder. * Fix FreeBSD gpu.yml location. * Add a default hosts file to hide warnings.
117 lines
3.4 KiB
YAML
117 lines
3.4 KiB
YAML
---
|
|
# Define program names for package builtin.
|
|
# This file is for ALL systems and should not include UI components.
|
|
|
|
- name: General | Facts | Packages | Parrot OS Fixes
|
|
set_fact:
|
|
ansible_pkg_mgr: "apt"
|
|
ansible_python_interpreter: "/usr/bin/python3"
|
|
when: ansible_distribution == "Parrot OS"
|
|
|
|
- name: General | Facts | Package | apt
|
|
set_fact:
|
|
sshfs: sshfs
|
|
locate: locate
|
|
opensshd: openssh-server
|
|
tar: tar
|
|
when: ansible_pkg_mgr == "apt"
|
|
|
|
- name: General | Facts | Package | pacman
|
|
set_fact:
|
|
sshfs: sshfs
|
|
locate: mlocate
|
|
opensshd: openssh
|
|
tar: tar
|
|
when: ansible_pkg_mgr == "pacman"
|
|
|
|
- name: General | Facts | Package | FreeBSD
|
|
set_fact:
|
|
sshfs: fusefs-sshfs
|
|
locate: htop # Placeholder to prevent errors, locate built into FreeBSD.
|
|
opensshd: htop # sshd comes installed on FreeBSD
|
|
ansible_python_interpreter: "/usr/local/bin/python3.8"
|
|
tar: htop # tar already provided in FreeBSD
|
|
when: ansible_system == "FreeBSD"
|
|
|
|
- name: General | Facts | Package | dnf
|
|
set_fact:
|
|
sshfs: fuse-sshfs
|
|
locate: mlocate
|
|
opensshd: openssh
|
|
tar: tar
|
|
when: ansible_pkg_mgr == "dnf"
|
|
|
|
|
|
- name: General | Facts | Package | Update Commands | Helpers
|
|
set_fact:
|
|
update_accept_var: '$accept'
|
|
|
|
- name: General | Facts | Package | Update Commands | apt
|
|
set_fact:
|
|
update_package_manager: |
|
|
echo "*** Apt ***" &&
|
|
sudo apt update &&
|
|
sudo apt autoremove {{ update_accept_var }} &&
|
|
sudo dpkg --configure -a &&
|
|
sudo apt --fix-broken --fix-missing install &&
|
|
sudo apt dist-upgrade --allow-downgrades --fix-broken --fix-missing {{ update_accept_var }} &&
|
|
when: ansible_pkg_mgr == "apt"
|
|
|
|
- name: General | Facts | Package | Update Commands | pacman
|
|
set_fact:
|
|
update_package_manager: |
|
|
echo "*** Pacman ***" &&
|
|
sudo pacman -Syyu &&
|
|
when: ansible_pkg_mgr == "pacman"
|
|
|
|
- name: General | Facts | Package | Update Commands | pkg
|
|
set_fact:
|
|
update_package_manager: |
|
|
echo "*** Pkg ***" &&
|
|
sudo pkg update &&
|
|
sudo pkg upgrade &&
|
|
when: ansible_pkg_mgr in ("pkg", "pkgng")
|
|
|
|
- name: General | Facts | Package | Update Commands | parrot-upgrade
|
|
set_fact:
|
|
update_package_manager: |
|
|
echo "*** Parrot ***"
|
|
sudo apt update &&
|
|
sudo apt autoremove {{ update_accept_var }} &&
|
|
parrot_mirrors_suck=true &&
|
|
while [[ $parrot_mirrors_suck ]]; do
|
|
unset parrot_mirrors_suck
|
|
sudo parrot-upgrade
|
|
if [[ $? != 0 ]]; then
|
|
parrot_mirrors_suck=true
|
|
sudo apt update --fix-missing
|
|
fi
|
|
done &&
|
|
when: ansible_distribution == "Parrot OS"
|
|
|
|
- name: General | Facts | Package | Update Commands | dnf
|
|
set_fact:
|
|
update_package_manager: |
|
|
echo "*** DNF ***" &&
|
|
sudo dnf upgrade {{ update_accept_var }} &&
|
|
when: ansible_pkg_mgr in ("dnf")
|
|
|
|
|
|
- name: General | Facts | Package | Update Commands | flatpak | check
|
|
shell: which flatpak
|
|
register: flatpak_exec
|
|
ignore_errors: yes
|
|
|
|
- name: General | Facts | Package | Update Commands | flatpak | exists
|
|
set_fact:
|
|
update_flatpak: |
|
|
echo "*** Flatpak ***" &&
|
|
sudo flatpak update {{ update_accept_var }} &&
|
|
when: flatpak_exec is defined and flatpak_exec.failed is defined and not flatpak_exec.failed
|
|
|
|
- name: General | Facts | Package | Update Commands | flatpak | not exists
|
|
set_fact:
|
|
update_flatpak: |
|
|
echo "*** Flatpak Not Installed ***" &&
|
|
when: update_flatpak is not defined
|