From facabfe3b6fdc341b8ae636e08ef87433dbf84aa Mon Sep 17 00:00:00 2001 From: Wendell Jones Date: Wed, 10 Sep 2025 08:07:13 -0400 Subject: [PATCH] refactor: update task to remove multiple packages in install_openitcockpit.yaml --- install_openitcockpit.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install_openitcockpit.yaml b/install_openitcockpit.yaml index a30a957..29cecd9 100644 --- a/install_openitcockpit.yaml +++ b/install_openitcockpit.yaml @@ -32,13 +32,15 @@ # ansible.builtin.shell: # cmd: systemctl restart openitcockpit-agent - - name: Remove a package + + - name: Remove multiple packages hosts: all - become: yes # Run tasks with sudo privileges + become: yes tasks: - - name: Remove the 'opencockpit' package + - name: Uninstall multiple packages ansible.builtin.apt: - name: openitcockpit-agent + name: + - viopenitcockpit-agentm state: absent # - name: Install a list of packages