diff --git a/tasks/stunnel.yml b/tasks/stunnel.yml
index ae5652cab2f00cfac7d0a74e8058d1c18b298626..c404d765e82a168eecfb7b9741a6dfcb2c7e5877 100644
--- a/tasks/stunnel.yml
+++ b/tasks/stunnel.yml
@@ -14,7 +14,7 @@
 - name: pkg install stunnel
   when: ansible_pkg_mgr == 'openbsd_pkg'
   openbsd_pkg:
-    name: '{{ openbsd_stunnel_version[ansible_os_family] }}'
+    name: '{{ openbsd_stunnel_version[ansible_distribution_release] }}'
     state: present
 
 - name: Configure stunnel