diff --git a/roles/dokuwiki/tasks/main.yml b/roles/dokuwiki/tasks/main.yml
index ef64e92..5621a53 100644
--- a/roles/dokuwiki/tasks/main.yml
+++ b/roles/dokuwiki/tasks/main.yml
@@ -52,8 +52,6 @@
     depth: 1
     single_branch: true
     track_submodules: true
-    accept_hostkey: true
-    accept_newhostkey: true
   when:
     - dokuwiki__custom_theme_git_url != ""
     - dokuwiki__custom_theme_name != ""