comment out YUM and APK host configurations in linux_updates.yaml

This commit is contained in:
2025-09-10 07:18:15 -04:00
parent daf30476c5
commit 298e9d8757
+27 -27
View File
@@ -1,24 +1,24 @@
--- ---
- hosts: yumhosts #- hosts: yumhosts
gather_facts: no # gather_facts: no
tasks: # tasks:
- name: Update all installed packages using YUM module # - name: Update all installed packages using YUM module
ansible.builtin.yum: # ansible.builtin.yum:
use_backend: yum3 # use_backend: yum3
name: '*' # name: '*'
state: latest # state: latest
update_cache: yes # update_cache: yes
update_only: yes # update_only: yes
register: yum_update_status # register: yum_update_status
- name: Remove packages not needed anymore # - name: Remove packages not needed anymore
ansible.builtin.yum: # ansible.builtin.yum:
use_backend: yum3 # use_backend: yum3
autoremove: yes # autoremove: yes
- name: Reboot when packages were updated # - name: Reboot when packages were updated
reboot: # reboot:
when: yum_update_status.changed # when: yum_update_status.changed
- hosts: debianhosts - hosts: debianhosts
gather_facts: no gather_facts: no
@@ -40,15 +40,15 @@
post_reboot_delay: 60 post_reboot_delay: 60
when: apt_update_status.changed when: apt_update_status.changed
- hosts: apkhosts #- hosts: apkhosts
tasks: # tasks:
- name: Update the Package Repositories # - name: Update the Package Repositories
apk: # apk:
update_cache: yes # update_cache: yes
- name: Upgrade Packages # - name: Upgrade Packages
apk: # apk:
available: yes # available: yes
upgrade: yes # upgrade: yes
#- hosts: ipkg #- hosts: ipkg
# tasks: # tasks:
# - name: Update the Packages installed on Diskstation # - name: Update the Packages installed on Diskstation