summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-hosted/private/create_persistent_volumes.yml
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-11-21 16:47:48 -0500
committerRussell Teague <rteague@redhat.com>2017-11-22 08:14:04 -0500
commita495780e61e824dddeaf35b9d58b6b37e300505c (patch)
tree16dd17c673dbce1461bb904f9a67f91c40f415b5 /playbooks/openshift-hosted/private/create_persistent_volumes.yml
parent7c6e0712b6bb57dcce6a055d4f88a2234449141f (diff)
downloadopenshift-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/create_persistent_volumes.yml')
-rw-r--r--playbooks/openshift-hosted/private/create_persistent_volumes.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/playbooks/openshift-hosted/private/create_persistent_volumes.yml b/playbooks/openshift-hosted/private/create_persistent_volumes.yml
new file mode 100644
index 000000000..8a60a30b8
--- /dev/null
+++ b/playbooks/openshift-hosted/private/create_persistent_volumes.yml
@@ -0,0 +1,9 @@
+---
+- name: Create Hosted Resources - persistent volumes
+ hosts: oo_first_master
+ vars:
+ persistent_volumes: "{{ hostvars[groups.oo_first_master.0] | oo_persistent_volumes(groups) }}"
+ persistent_volume_claims: "{{ hostvars[groups.oo_first_master.0] | oo_persistent_volume_claims }}"
+ roles:
+ - role: openshift_persistent_volumes
+ when: persistent_volumes | length > 0 or persistent_volume_claims | length > 0