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