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
733 B

9 years ago
  1. ---
  2. - name: Create calico release directory
  3. local_action: file
  4. path={{ local_release_dir }}/calico/bin
  5. recurse=yes
  6. state=directory
  7. delegate_to: "{{ groups['kube-master'][0] }}"
  8. - name: Check if calicoctl has been downloaded
  9. local_action: stat
  10. path={{ local_release_dir }}/calico/bin/calicoctl
  11. register: c_tar
  12. delegate_to: "{{ groups['kube-master'][0] }}"
  13. # issues with get_url module and redirects, to be tested again in the near future
  14. - name: Download calico
  15. local_action: shell
  16. curl -o {{ local_release_dir }}/calico/bin/calicoctl -Ls {{ calico_download_url }}/{{ calico_version }}/calicoctl
  17. when: not c_tar.stat.exists
  18. register: dl_calico
  19. delegate_to: "{{ groups['kube-master'][0] }}"