update, pacman, handle the noconfirm differently so that things like update-firmware still get the -y.

This commit is contained in:
me
2026-09-19 09:47:32 -07:00
parent f19bc454e4
commit fc49d68d01
+2 -7
View File
@@ -101,11 +101,6 @@
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:
@@ -159,9 +154,9 @@
pacman)
echo "*** Pacman ***"
auto_accept=""
if [[ -n "$accept" ]]; then
auto_accept="{{ update_accept_var }}"
if [[ "$auto_accept" == "-y" ]]; then
auto_accept="--noconfirm"
fi
sudo pacman -Syu $auto_accept ||