This commit changes rancher role to
use the cluster_ip when constructing rancher
server url.
This is a prerequisite to playbook level
rancher tests.
Change-Id: Id3eff260fe9d158aa8ab39494446ff7d6ad7ec6c
Issue-ID: OOM-1906
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
---
-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
- role: rancher
vars:
mode: server
- rancher_server_url: "http://{{ cluster_ip }}:8080"
- name: Converge rancher agent
hosts: kubernetes