refactor: update task to remove multiple packages in install_openitcockpit.yaml

This commit is contained in:
2025-09-10 08:07:13 -04:00
parent 68fb357795
commit facabfe3b6
+6 -4
View File
@@ -32,13 +32,15 @@
# ansible.builtin.shell: # ansible.builtin.shell:
# cmd: systemctl restart openitcockpit-agent # cmd: systemctl restart openitcockpit-agent
- name: Remove a package
- name: Remove multiple packages
hosts: all hosts: all
become: yes # Run tasks with sudo privileges become: yes
tasks: tasks:
- name: Remove the 'opencockpit' package - name: Uninstall multiple packages
ansible.builtin.apt: ansible.builtin.apt:
name: openitcockpit-agent name:
- viopenitcockpit-agentm
state: absent state: absent
# - name: Install a list of packages # - name: Install a list of packages