packages, add a shell_check, AUR tasks need to be changed similar to android.yml where it echoes what was truly done so we know if it is OK, CHANGED, FAILED, etc.

This commit is contained in:
me
2026-10-16 09:01:29 -07:00
parent cab2013a97
commit 13f20a4e98
@@ -14,6 +14,8 @@
- "dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
- "dnf config-manager --enable rpmfusion-nonfree"
- "dnf config-manager --enable rpmfusion-nonfree-updates"
register: shell_check
changed_when: shell_check.rc == 0
when: ansible_distribution == "Fedora"
@@ -88,6 +90,9 @@
state: present
when: ansible_service_mgr != "systemd"
# TBD/TODO: Change the below AUR tasks to echo EXISTS, INSTALLED, or FAILED
# and then catch it, similar to what's done in android.yml and others.
- name: Workstation | Linux | Software | Packages | Install From AUR
ansible.builtin.shell: "yay -Qs {{ item }} || yay --noconfirm -S {{ item }}"
loop: