diff --git a/ansible/roles/memcached/templates/memcached.json.j2 b/ansible/roles/memcached/templates/memcached.json.j2
index 06bc2b4e7b8661b7ee3c8cfa07ee1a4c1e321d6e..fc59fd01cc031731c7bb57470a01b12700fe62b9 100644
--- a/ansible/roles/memcached/templates/memcached.json.j2
+++ b/ansible/roles/memcached/templates/memcached.json.j2
@@ -1,4 +1,4 @@
 {
-    "command": "/usr/bin/memcached -vv -l {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} -p {{ memcached_port }}",
+    "command": "/usr/bin/memcached -vv -l {{ api_interface_address }} -p {{ memcached_port }}",
     "config_files": []
 }