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:
|
2021-03-24 00:26:05 +00:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
2017-12-19 14:47:00 +00:00
|
|
|
|
|
|
|
- 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:
|
2021-03-24 00:26:05 +00:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
2018-02-14 09:17:06 +00:00
|
|
|
- manifests.changed
|