feat(ansible): Repurpose obsolete vpp-device
[csit.git] / fdio.infra.ansible / roles / cleanup / tasks / remove_package.yaml
index 302b43c..652729b 100644 (file)
@@ -1,21 +1,21 @@
 ---
-# file: roles/cleanup/tasks/remove_package.yaml
+# file: tasks/remove_package.yaml
 
-- name: Remove Package - Fix Corrupted APT
-  shell: "dpkg --configure -a"
+- name: Fix Corrupted APT
+  ansible.builtin.shell: "dpkg --configure -a"
   when:
     - ansible_distribution == 'Ubuntu'
   tags:
     - remove-package
 
 - name: Remove Package - {{ package }}
-  apt:
+  ansible.builtin.apt:
     name: "{{ package }}"
-    force: yes
-    purge: yes
+    force: true
+    purge: true
     state: "absent"
-  failed_when: no
+  failed_when: false
   when:
     - ansible_distribution == 'Ubuntu'
   tags:
-    - remove-package
+    - remove-package
\ No newline at end of file