refactor: update task to remove multiple packages in install_openitcockpit.yaml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user