diff --git a/roles/cortex/templates/application.conf.j2 b/roles/cortex/templates/application.conf.j2
index c7f8b0aaa38ae0c8a3cc7d4dea1a84784a3f69cc..e45e446edc48c43d6c4e2a6ae7f9aa3f9b00f879 100644
--- a/roles/cortex/templates/application.conf.j2
+++ b/roles/cortex/templates/application.conf.j2
@@ -6,7 +6,7 @@
 #
 # IMPORTANT: If you deploy your application to several  instances,  make
 # sure to use the same key.
-play.http.secret.key='{{lookup("password", "{{playbook_dir}}/secrets/passwords/cortex_secret_key")}}'
+play.http.secret.key="{{lookup('password', '{{playbook_dir}}/secrets/passwords/cortex_secret_key')}}"
 
 ## ElasticSearch
 search {