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