2017-12-19 22:47:00 +08:00
|
|
|
---
|
|
|
|
- name: Kubernetes Persistent Volumes | Lay down OpenStack Cinder Storage Class template
|
|
|
|
template:
|
2018-02-14 17:17:06 +08:00
|
|
|
src: "openstack-storage-class.yml.j2"
|
|
|
|
dest: "{{kube_config_dir}}/openstack-storage-class.yml"
|
2017-12-19 22:47:00 +08:00
|
|
|
register: manifests
|
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube-master'][0]
|
|
|
|
|
|
|
|
- name: Kubernetes Persistent Volumes | Add OpenStack Cinder Storage Class
|
|
|
|
kube:
|
2018-02-14 17:17:06 +08:00
|
|
|
name: storage-class
|
2017-12-19 22:47:00 +08:00
|
|
|
kubectl: "{{bin_dir}}/kubectl"
|
2018-02-14 17:17:06 +08:00
|
|
|
resource: StorageClass
|
|
|
|
filename: "{{kube_config_dir}}/openstack-storage-class.yml"
|
2017-12-19 22:47:00 +08:00
|
|
|
state: "latest"
|
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube-master'][0]
|
2018-02-14 17:17:06 +08:00
|
|
|
- manifests.changed
|