summaryrefslogtreecommitdiffstats
path: root/roles/openshift_router/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_router/tasks')
-rw-r--r--roles/openshift_router/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_router/tasks/main.yml b/roles/openshift_router/tasks/main.yml
new file mode 100644
index 000000000..56dbcc414
--- /dev/null
+++ b/roles/openshift_router/tasks/main.yml
@@ -0,0 +1,8 @@
+---
+- set_fact: _option_images="--images={{ openshift_registry_url|quote }}"
+ when: openshift_registry_url is defined
+
+- name: Deploy OpenShift Router
+ command: openshift ex router --create --credentials="{{ansible_env['HOME']}}"/.config/openshift/config {{ _option_images|default() }}
+ register: _openshift_router__results
+ changed_when: "'service exists' not in _openshift_router__results.stdout"