diff options
author | Russell Teague <rteague@redhat.com> | 2017-11-21 16:47:48 -0500 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-11-22 08:14:04 -0500 |
commit | a495780e61e824dddeaf35b9d58b6b37e300505c (patch) | |
tree | 16dd17c673dbce1461bb904f9a67f91c40f415b5 /playbooks/openshift-hosted/private/openshift_hosted_router.yml | |
parent | 7c6e0712b6bb57dcce6a055d4f88a2234449141f (diff) | |
download | openshift-a495780e61e824dddeaf35b9d58b6b37e300505c.tar.gz openshift-a495780e61e824dddeaf35b9d58b6b37e300505c.tar.bz2 openshift-a495780e61e824dddeaf35b9d58b6b37e300505c.tar.xz openshift-a495780e61e824dddeaf35b9d58b6b37e300505c.zip |
Playbook Consolidation - openshift-hosted
Diffstat (limited to 'playbooks/openshift-hosted/private/openshift_hosted_router.yml')
-rw-r--r-- | playbooks/openshift-hosted/private/openshift_hosted_router.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/openshift-hosted/private/openshift_hosted_router.yml b/playbooks/openshift-hosted/private/openshift_hosted_router.yml new file mode 100644 index 000000000..bcb5a34a4 --- /dev/null +++ b/playbooks/openshift-hosted/private/openshift_hosted_router.yml @@ -0,0 +1,13 @@ +--- +- name: Create Hosted Resources - router + hosts: oo_first_master + tasks: + - set_fact: + openshift_hosted_router_registryurl: "{{ hostvars[groups.oo_first_master.0].openshift.master.registry_url }}" + when: "'master' in hostvars[groups.oo_first_master.0].openshift and 'registry_url' in hostvars[groups.oo_first_master.0].openshift.master" + - include_role: + name: openshift_hosted + tasks_from: router.yml + when: + - openshift_hosted_manage_router | default(True) | bool + - openshift_hosted_router_registryurl is defined |