summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-hosted/private/openshift_hosted_registry.yml
blob: 659c95edafae51eaf907280f92d824c2e38eae70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"
  - import_role:
      name: openshift_hosted
      tasks_from: registry.yml
    when:
    - openshift_hosted_manage_registry | default(True) | bool
    - openshift_hosted_registry_registryurl is defined