From ee5fe4f78f096db1057e095edb25fd6d4f9f160d Mon Sep 17 00:00:00 2001 From: Wendell Jones Date: Wed, 10 Sep 2025 07:59:27 -0400 Subject: [PATCH] comment out APT module tasks in linux_updates.yaml --- linux_updates.yaml | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/linux_updates.yaml b/linux_updates.yaml index ee85b9d..592438e 100644 --- a/linux_updates.yaml +++ b/linux_updates.yaml @@ -23,22 +23,31 @@ - hosts: debianhosts gather_facts: no tasks: - - name: Update all installed packages using APT module - apt: - name: '*' - state: latest - update_cache: yes - only_upgrade: yes - register: apt_update_status + # - name: Update all installed packages using APT module + # apt: + # name: '*' + # state: latest + # update_cache: yes + # only_upgrade: yes + # register: apt_update_status - - name: Remove packages not needed anymore - apt: - autoremove: yes + # - name: Remove packages not needed anymore + # apt: + # autoremove: yes - - name: Reboot when packages were updated - reboot: - post_reboot_delay: 60 - when: apt_update_status.changed + # - name: Reboot when packages were updated + # reboot: + # post_reboot_delay: 60 + # when: apt_update_status.changed + + - name: Remove a package + hosts: all + become: yes # Run tasks with sudo privileges + tasks: + - name: Remove the 'opencockpit' package + ansible.builtin.apt: + name: openitcockpit-agent + state: absent #- hosts: apkhosts # tasks: