summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorMichal Ptacek <m.ptacek@partner.samsung.com>2019-07-10 04:47:57 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-10 04:47:57 +0000
commitfb03eebcbc670415cdb37861452f0ed4bd65696a (patch)
treeb3a033a91335be2614c69d0e02d6e514085596c2 /ansible
parent86d690963b80241f408c1668c58f3cd6a0955dcd (diff)
parent88935caf1c0ef81928bdbfdc256842aa0c17d38a (diff)
Merge "Use cluster_ip for rancher server url"
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/rancher/defaults/main.yml2
-rw-r--r--ansible/roles/rancher/molecule/default/playbook.yml1
2 files changed, 1 insertions, 2 deletions
diff --git a/ansible/roles/rancher/defaults/main.yml b/ansible/roles/rancher/defaults/main.yml
index e4e12d23..8a37574a 100644
--- a/ansible/roles/rancher/defaults/main.yml
+++ b/ansible/roles/rancher/defaults/main.yml
@@ -1,5 +1,5 @@
---
-rancher_server_url: "http://{{ hostvars[groups.infrastructure.0].ansible_host }}:8080"
+rancher_server_url: "http://{{ hostvars[groups.infrastructure.0].cluster_ip }}:8080"
rancher_remove_other_env: true
rancher_redeploy_k8s_env: true
rancher_cluster_health_state: healthy
diff --git a/ansible/roles/rancher/molecule/default/playbook.yml b/ansible/roles/rancher/molecule/default/playbook.yml
index e4a7151e..436f2ff4 100644
--- a/ansible/roles/rancher/molecule/default/playbook.yml
+++ b/ansible/roles/rancher/molecule/default/playbook.yml
@@ -6,7 +6,6 @@
- role: rancher
vars:
mode: server
- rancher_server_url: "http://{{ cluster_ip }}:8080"
- name: Converge rancher agent
hosts: kubernetes