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