diff --git a/ansible/roles/raspbian/tasks/main.yml b/ansible/roles/raspbian/tasks/main.yml
index 30fa369d97081419d12fcf20c2f0b98e7bcab50b..6490ddedac5d2d4a2f52b7e1a90ee67ac438b566 100644
--- a/ansible/roles/raspbian/tasks/main.yml
+++ b/ansible/roles/raspbian/tasks/main.yml
@@ -24,3 +24,11 @@
     name: dphys-swapfile
     enabled: false
     state: stopped
+
+- name: Use 64bit kernel
+  lineinfile:
+    insertafter: '^\[pi4\]$'
+    regexp: '^arm_64bit='
+    line: "arm_64bit=1"
+    path: /boot/config.txt
+  when: raspbian64