blob: 0c8816fe290d2b049bc851bbdc74a4969a03978c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
# file: roles/cleanup/tasks/remove_package.yaml
- name: Remove package - Fix corrupted apt
shell: 'dpkg --configure -a'
when: >
ansible_distribution == 'Ubuntu'
tags: remove-package
- name: Remove package - {{ package }}
apt:
name: '{{ package }}'
force: yes
purge: yes
state: absent
failed_when: no
when: >
ansible_distribution == 'Ubuntu'
tags: remove-package
|