fix(ansible): Cleanup macros
[csit.git] / fdio.infra.ansible / roles / cleanup / tasks / remove_package.yaml
index 484868e..652729b 100644 (file)
@@ -1,15 +1,15 @@
 ---
-# 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: true
     purge: true
@@ -18,4 +18,4 @@
   when:
     - ansible_distribution == 'Ubuntu'
   tags:
-    - remove-package
+    - remove-package
\ No newline at end of file