You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
718 B

  1. ---
  2. - name: Kubernetes Persistent Volumes | Lay down OpenStack Cinder Storage Class template
  3. template:
  4. src: "{{item.file}}"
  5. dest: "{{kube_config_dir}}/{{item.file}}"
  6. with_items:
  7. - {file: openstack-storage-class.yml, type: StorageClass, name: storage-class }
  8. register: manifests
  9. when:
  10. - inventory_hostname == groups['kube-master'][0]
  11. - name: Kubernetes Persistent Volumes | Add OpenStack Cinder Storage Class
  12. kube:
  13. name: "{{item.item.name}}"
  14. kubectl: "{{bin_dir}}/kubectl"
  15. resource: "{{item.item.type}}"
  16. filename: "{{kube_config_dir}}/{{item.item.file}}"
  17. state: "latest"
  18. with_items: "{{ manifests.results }}"
  19. when:
  20. - inventory_hostname == groups['kube-master'][0]