summaryrefslogtreecommitdiffstats
path: root/roles/ands_network/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ands_network/tasks')
-rw-r--r--roles/ands_network/tasks/common.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/roles/ands_network/tasks/common.yml b/roles/ands_network/tasks/common.yml
index 940cde7..03d9fb4 100644
--- a/roles/ands_network/tasks/common.yml
+++ b/roles/ands_network/tasks/common.yml
@@ -21,10 +21,12 @@
- nodes
- new_nodes
-- name: Provision /etc/hosts to ensure that all masters servers are accessing Master API on loopback device
- lineinfile: dest="/etc/hosts" line="127.0.0.1 {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present"
- when: ('masters' in group_names or 'new_masters' in group_names)
- register: result
+# This brakes communication of containers with KaaS cluster (as 127.0.0.1 is not valid in container context, but resolved like that nethertheless)
+# DISABLED on 2019.10.10: I guess this is not that big a deal of extra communication. Technically, in futre we can put here actual ip of the node.
+#- name: Provision /etc/hosts to ensure that all masters servers are accessing Master API on loopback device
+# lineinfile: dest="/etc/hosts" line="127.0.0.1 {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present"
+# when: ('masters' in group_names or 'new_masters' in group_names)
+# register: result
- name: Provision /etc/hosts with load-balance IP on non master servers
lineinfile: dest="/etc/hosts" line="{{ ands_inner_lb_ip }} {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present"