diff --git a/ansible/roles/ironic/tasks/deploy.yml b/ansible/roles/ironic/tasks/deploy.yml
index bf32d69f350a08b68bf618804285ac131a49306c..f135ada7137205bfa6cc6c14dcd4967572806539 100644
--- a/ansible/roles/ironic/tasks/deploy.yml
+++ b/ansible/roles/ironic/tasks/deploy.yml
@@ -1,6 +1,6 @@
 ---
 - import_tasks: register.yml
-  when: enable_keystone | bool
+  when: ironic_enable_keystone_integration | bool
 
 - import_tasks: config-host.yml
 
diff --git a/ansible/roles/ironic/templates/ironic-inspector.conf.j2 b/ansible/roles/ironic/templates/ironic-inspector.conf.j2
index e3d87dfc24f580f1f52af55dcc7edbab2b89264c..2e5e58fbfc2af9ebef50c77c5cda6b9a5527efb6 100644
--- a/ansible/roles/ironic/templates/ironic-inspector.conf.j2
+++ b/ansible/roles/ironic/templates/ironic-inspector.conf.j2
@@ -19,7 +19,7 @@ ssl_ca_file = {{ om_rabbitmq_cacert }}
 {% endif %}
 
 [ironic]
-{% if enable_keystone | bool %}
+{% if ironic_enable_keystone_integration | bool %}
 auth_url = {{ keystone_admin_url }}
 auth_type = password
 project_domain_id = {{ default_project_domain_id }}
@@ -35,7 +35,7 @@ auth_type = none
 endpoint_override = {{ ironic_internal_endpoint }}
 {% endif %}
 
-{% if enable_keystone | bool %}
+{% if ironic_enable_keystone_integration | bool %}
 [keystone_authtoken]
 www_authenticate_uri = {{ keystone_internal_url }}
 auth_url = {{ keystone_admin_url }}