diff --git a/tests/playbook.yml b/tests/playbook.yml
index c548e29dab9fa581bf9193981c48172200e5d8e8..a72b3de7a5bdac774dc1c5e3d6e4ac7b1b510b03 100644
--- a/tests/playbook.yml
+++ b/tests/playbook.yml
@@ -19,6 +19,15 @@
 
 - hosts: all
   pre_tasks:
+      - name: Set invalid, long enough passwords (workaround for OpenBSD restriction)
+        when: ansible_os_family == 'OpenBSD'
+        with_items: '{{ deploy_key_users }}'
+        user:
+            name: '{{ item }}'
+            password: '*************'
+            state: present
+            update_password: always
+
       - name: Create SSH keypair
         local_action: command ssh-keygen -t rsa -N '' -f files/id_rsa
         run_once: True