--- # Volume Snapshot CRDs + snapshot-controller (Velero CSI / Longhorn snapshots). - name: Apply Volume Snapshot CRDs (snapshot.storage.k8s.io) ansible.builtin.command: argv: - kubectl - apply - "--request-timeout={{ noble_csi_snapshot_kubectl_timeout | default('120s') }}" - -k - "{{ noble_repo_root }}/clusters/noble/bootstrap/csi-snapshot-controller/crd" environment: KUBECONFIG: "{{ noble_kubeconfig }}" changed_when: true - name: Apply snapshot-controller in kube-system ansible.builtin.command: argv: - kubectl - apply - "--request-timeout={{ noble_csi_snapshot_kubectl_timeout | default('120s') }}" - -k - "{{ noble_repo_root }}/clusters/noble/bootstrap/csi-snapshot-controller/controller" environment: KUBECONFIG: "{{ noble_kubeconfig }}" changed_when: true - name: Wait for snapshot-controller Deployment ansible.builtin.command: argv: - kubectl - -n - kube-system - rollout - status - deploy/snapshot-controller - --timeout=120s environment: KUBECONFIG: "{{ noble_kubeconfig }}" changed_when: false