update, pacman, handle the noconfirm differently so that things like update-firmware still get the -y.
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user