summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-glusterfs/private/registry.yml
blob: 917b729f9f1c72c167e858fc4daffa0dd0f8499e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- import_playbook: config.yml

- name: Create persistent volumes
  hosts: oo_first_master
  roles:
  - role: openshift_persistent_volumes
    when: openshift_hosted_registry_storage_glusterfs_swap | default(False)

- name: Create Hosted Resources
  hosts: oo_first_master
  tags:
  - hosted
  pre_tasks:
  - set_fact:
      openshift_hosted_router_registryurl: "{{ hostvars[groups.oo_first_master.0].openshift.master.registry_url }}"
      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"
  roles:
  - role: openshift_hosted