484868e595ac54ef9009be8756723574e4bdb554
[csit.git] / fdio.infra.ansible / roles / cleanup / tasks / remove_package.yaml
1 ---
2 # file: roles/cleanup/tasks/remove_package.yaml
3
4 - name: Remove Package - Fix Corrupted APT
5   shell: "dpkg --configure -a"
6   when:
7     - ansible_distribution == 'Ubuntu'
8   tags:
9     - remove-package
10
11 - name: Remove Package - {{ package }}
12   apt:
13     name: "{{ package }}"
14     force: true
15     purge: true
16     state: "absent"
17   failed_when: false
18   when:
19     - ansible_distribution == 'Ubuntu'
20   tags:
21     - remove-package