add playbook and role to remove packages
This commit is contained in:
10
ansible/roles/apt-remove-package/tasks/main.yml
Normal file
10
ansible/roles/apt-remove-package/tasks/main.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
- name: "Remove {{ package }}"
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
name: "{{ package }}"
|
||||
state: absent
|
||||
failed_when: package is undefined
|
||||
|
||||
...
|
Reference in New Issue
Block a user