summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorMichal Zegan <m.zegan@samsung.com>2019-01-04 14:20:03 +0100
committerMichal Zegan <m.zegan@samsung.com>2019-01-04 14:22:48 +0100
commit55dd7f5c28a0d3e68a3825d25d757a63e8622155 (patch)
tree3220a5065db111f5c984f42c7974ae4c738fa856 /ansible
parent329320e637f5ab3bea558db0e13452ab9cfc7bab (diff)
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>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/docker/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml
index 28c322c3..9851d4dc 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