diff --git a/.gitlab-ci-template.yml b/.gitlab-ci-template.yml
index fd600b54a0aa4b06cfdd6c47ddd03c995981237e..21081bfbd05f3a73c8f509820ba8e004b7de34be 100644
--- a/.gitlab-ci-template.yml
+++ b/.gitlab-ci-template.yml
@@ -51,7 +51,7 @@ Ansible:
 AnsibleDirect:
   <<: *default_settings_cron
   script:
-    - a ${CHAT_INPUT} ${ANSIBLE_EXTRA_ARGS}
+    - a -m ${ANSIBLE_COMMAND} -a "${ANSIBLE_ARGS}" ${ANSIBLE_EXTRA_ARGS}
   except:
     variables:
       - $ANSIBLE_JOB_NAME && $ANSIBLE_JOB_NAME != "AnsibleDirect"