refactor: simplify uninstall task for multiple packages in install_openitcockpit.yaml
This commit is contained in:
@@ -33,15 +33,13 @@
|
||||
# cmd: systemctl restart openitcockpit-agent
|
||||
|
||||
|
||||
- name: Remove multiple packages
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Uninstall multiple packages
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- viopenitcockpit-agentm
|
||||
state: absent
|
||||
|
||||
- name: Uninstall multiple packages
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- viopenitcockpit-agentm
|
||||
state: absent
|
||||
purge: yes
|
||||
|
||||
# - name: Install a list of packages
|
||||
# ansible.builtin.apt:
|
||||
# pkg:
|
||||
|
||||
Reference in New Issue
Block a user