diff --git a/tasks/main.yml b/tasks/main.yml
index 8bc8093..c2e48bf 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,22 +1,20 @@
 ---
 
 - name: Ensure cron and git installed (Debian)
-  apt:
-    name: "{{ item }}"
+  package:
+    name:
+      - cron
+      - git
     state: present
-  with_items:
-    - cron
-    - git
   when: ansible_os_family == 'Debian'
   tags: [ server-scripts, install ]
 
 - name: Ensure cron and git installed (RedHat)
   package:
-    name: "{{ item }}"
+    name:
+      - crontabs
+      - git
     state: present
-  with_items:
-    - crontabs
-    - git
   when: ansible_os_family == 'RedHat'
   tags: [ server-scripts, install ]