From 05cc4d84fba2a0ac6877ec7d2929a4d461b1124e Mon Sep 17 00:00:00 2001 From: Andrew Lau Date: Thu, 22 Sep 2016 08:59:28 +1000 Subject: Add openshift_hosted_router_name --- roles/openshift_hosted/tasks/router/router.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/openshift_hosted/tasks') diff --git a/roles/openshift_hosted/tasks/router/router.yml b/roles/openshift_hosted/tasks/router/router.yml index e18b9781c..0cad19c34 100644 --- a/roles/openshift_hosted/tasks/router/router.yml +++ b/roles/openshift_hosted/tasks/router/router.yml @@ -70,6 +70,10 @@ {% if openshift.hosted.router.registryurl | default(none) is not none -%} --images='{{ openshift.hosted.router.registryurl }}' {% endif -%} + {% if openshift.hosted.router.name | default(none) is not none -%} + {{ openshift.hosted.router.name }} + {% endif -%} + register: openshift_hosted_router_results changed_when: "'service exists' not in openshift_hosted_router_results.stdout" failed_when: "openshift_hosted_router_results.rc != 0 and 'service exists' not in openshift_hosted_router_results.stdout and 'deployment_config' not in openshift_hosted_router_results.stderr and 'service' not in openshift_hosted_router_results.stderr" -- cgit v1.2.3