artix, add changes and fixes while getting newer Intel workstation going properly.
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
locate: mlocate
|
||||
alsa: alsa-utils
|
||||
stress: stress
|
||||
fwupdmgr: fwupd
|
||||
|
||||
- name: General | Facts | Package | Parrot OS Fixes
|
||||
set_fact:
|
||||
@@ -101,6 +100,11 @@
|
||||
ansible_distribution_file: "{{ prov_dir }}/ansible_distribution.txt"
|
||||
ansible_pkg_mgr_file: "{{ prov_dir }}/ansible_pkg_mgr.txt"
|
||||
|
||||
- name: General | Facts | Package | Update Command | Helpers | pacman
|
||||
set_fact:
|
||||
update_accept_var: '--noconfirm'
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
- name: General | Facts | Package | Update Command | Store Variables
|
||||
shell: "{{ item }}"
|
||||
loop:
|
||||
@@ -154,18 +158,18 @@
|
||||
|
||||
pacman)
|
||||
echo "*** Pacman ***"
|
||||
pacman_accept=""
|
||||
auto_accept=""
|
||||
if [[ -n "$accept" ]]; then
|
||||
pacman_accept="--noconfirm"
|
||||
auto_accept="{{ update_accept_var }}"
|
||||
fi
|
||||
|
||||
sudo pacman -Syu $pacman_accept ||
|
||||
sudo pacman -Syu $auto_accept ||
|
||||
return 1
|
||||
echo -e "\n"
|
||||
|
||||
if [[ "$LOGNAME" != "root" ]]; then
|
||||
echo "*** AUR (yay) ***"
|
||||
yay -Syu $pacman_accept || return 2
|
||||
yay -Syu $auto_accept || return 2
|
||||
else
|
||||
echo "*** User is root, skipping AUR (yay) ***"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user