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:
@@ -14,6 +14,8 @@
|
|||||||
- "dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
|
- "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"
|
||||||
- "dnf config-manager --enable rpmfusion-nonfree-updates"
|
- "dnf config-manager --enable rpmfusion-nonfree-updates"
|
||||||
|
register: shell_check
|
||||||
|
changed_when: shell_check.rc == 0
|
||||||
when: ansible_distribution == "Fedora"
|
when: ansible_distribution == "Fedora"
|
||||||
|
|
||||||
|
|
||||||
@@ -88,6 +90,9 @@
|
|||||||
state: present
|
state: present
|
||||||
when: ansible_service_mgr != "systemd"
|
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
|
- name: Workstation | Linux | Software | Packages | Install From AUR
|
||||||
ansible.builtin.shell: "yay -Qs {{ item }} || yay --noconfirm -S {{ item }}"
|
ansible.builtin.shell: "yay -Qs {{ item }} || yay --noconfirm -S {{ item }}"
|
||||||
loop:
|
loop:
|
||||||
|
|||||||
Reference in New Issue
Block a user