Fix docker config handling in offline installer

This fixes adding of dns address to
/etc/docker/daemon.json to always use infra's ip address
instead of possibly using it's hostname.
It is done by replacing usage of "ansible_host" by
"ansible_default_ipv4.address" fact.

Change-Id: If6a29f3bf11ece7f883b099a1ab503341859cb90
Issue-ID: OOM-1573
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml
index 28c322c..9851d4d 100644
--- a/ansible/roles/docker/tasks/main.yml
+++ b/ansible/roles/docker/tasks/main.yml
@@ -20,7 +20,7 @@
   json_add:
     path: /etc/docker/daemon.json
     key: dns
-    value: "{{ hostvars[groups.infrastructure[0]].ansible_host }}"
+    value: "{{ hostvars[groups.infrastructure[0]].ansible_default_ipv4.address }}"
   notify:
     - Restart Docker