Molecule tests for rancher role

Issue-ID: OOM-1775

Change-Id: I6ea11db932cd77e03909e4c72acc4b92a544eb4b
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
diff --git a/ansible/roles/rancher/tasks/rancher_health.yml b/ansible/roles/rancher/tasks/rancher_health.yml
index b032373..b6e8d68 100644
--- a/ansible/roles/rancher/tasks/rancher_health.yml
+++ b/ansible/roles/rancher/tasks/rancher_health.yml
@@ -3,6 +3,6 @@
   uri:
     url: "{{ rancher_server_url }}/v2-beta/projects/{{ k8s_env_id }}"
   register: env_info
-  retries: 30
+  retries: "{{ rancher_cluster_health_check_retries }}"
   delay: 15
-  until: "env_info.json.healthState == 'healthy'"
+  until: env_info.json.healthState == rancher_cluster_health_state