diff options
author | Russell Teague <rteague@redhat.com> | 2017-11-22 10:59:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 10:59:04 -0500 |
commit | da85fd6aa7d71f97bfcaad3a2003921a5581a067 (patch) | |
tree | f486fb4f71b84c01230e505e90edc09517cbb3c2 /playbooks/openshift-hosted/private/openshift_hosted_registry.yml | |
parent | 21823fcfbe1a435264c3574806c6f38dd8ddc57f (diff) | |
parent | a495780e61e824dddeaf35b9d58b6b37e300505c (diff) | |
download | openshift-da85fd6aa7d71f97bfcaad3a2003921a5581a067.tar.gz openshift-da85fd6aa7d71f97bfcaad3a2003921a5581a067.tar.bz2 openshift-da85fd6aa7d71f97bfcaad3a2003921a5581a067.tar.xz openshift-da85fd6aa7d71f97bfcaad3a2003921a5581a067.zip |
Merge pull request #6217 from mtnbikenc/consolidate-openshift-hosted
Playbook Consolidation - openshift-hosted
Diffstat (limited to 'playbooks/openshift-hosted/private/openshift_hosted_registry.yml')
-rw-r--r-- | playbooks/openshift-hosted/private/openshift_hosted_registry.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/openshift-hosted/private/openshift_hosted_registry.yml b/playbooks/openshift-hosted/private/openshift_hosted_registry.yml new file mode 100644 index 000000000..2a91a827c --- /dev/null +++ b/playbooks/openshift-hosted/private/openshift_hosted_registry.yml @@ -0,0 +1,13 @@ +--- +- name: Create Hosted Resources - registry + hosts: oo_first_master + tasks: + - set_fact: + openshift_hosted_registry_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: registry.yml + when: + - openshift_hosted_manage_registry | default(True) | bool + - openshift_hosted_registry_registryurl is defined |