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.

17 lines
572 B

  1. ---
  2. - name: Kubernetes Snapshots | Copy Cinder CSI Snapshot Class template
  3. template:
  4. src: "cinder-csi-snapshot-class.yml.j2"
  5. dest: "{{ kube_config_dir }}/cinder-csi-snapshot-class.yml"
  6. register: manifests
  7. when:
  8. - inventory_hostname == groups['kube_control_plane'][0]
  9. - name: Kubernetes Snapshots | Add Cinder CSI Snapshot Class
  10. kube:
  11. kubectl: "{{ bin_dir }}/kubectl"
  12. filename: "{{ kube_config_dir }}/cinder-csi-snapshot-class.yml"
  13. state: "latest"
  14. when:
  15. - inventory_hostname == groups['kube_control_plane'][0]
  16. - manifests.changed