refactor: simplify uninstall task for multiple packages in install_openitcockpit.yaml

This commit is contained in:
2025-09-10 08:09:03 -04:00
parent ee655bc492
commit 74fc3cea17
+7 -9
View File
@@ -33,15 +33,13 @@
# cmd: systemctl restart openitcockpit-agent # cmd: systemctl restart openitcockpit-agent
- name: Remove multiple packages - name: Uninstall multiple packages
become: yes ansible.builtin.apt:
tasks: name:
- name: Uninstall multiple packages - viopenitcockpit-agentm
ansible.builtin.apt: state: absent
name: purge: yes
- viopenitcockpit-agentm
state: absent
# - name: Install a list of packages # - name: Install a list of packages
# ansible.builtin.apt: # ansible.builtin.apt:
# pkg: # pkg: