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.

18 lines
589 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. mode: "0644"
  7. register: manifests
  8. when:
  9. - inventory_hostname == groups['kube_control_plane'][0]
  10. - name: Kubernetes Snapshots | Add Cinder CSI Snapshot Class
  11. kube:
  12. kubectl: "{{ bin_dir }}/kubectl"
  13. filename: "{{ kube_config_dir }}/cinder-csi-snapshot-class.yml"
  14. state: "latest"
  15. when:
  16. - inventory_hostname == groups['kube_control_plane'][0]
  17. - manifests.changed