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.

7 lines
543 B

  1. #!/bin/sh -e
  2. export ANSIBLE_COLLECTIONS_PATH="./ansible_collections"
  3. ansible-galaxy collection build --force
  4. ansible-galaxy collection install kubernetes_sigs-kubespray-$(grep "^version:" galaxy.yml | awk '{print $2}').tar.gz
  5. ansible-galaxy collection list $(egrep -i '(name:\s+|namespace:\s+)' galaxy.yml | awk '{print $2}' | tr '\n' '.' | sed 's|\.$||g') | grep "^kubernetes_sigs.kubespray"
  6. test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/cluster.yml
  7. test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/reset.yml