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.

22 lines
759 B

  1. ---
  2. - name: Start Calico resources
  3. kube:
  4. name: "{{item.item.name}}"
  5. namespace: "kube-system"
  6. kubectl: "{{bin_dir}}/kubectl"
  7. resource: "{{item.item.type}}"
  8. filename: "{{kube_config_dir}}/{{item.item.file}}"
  9. state: "latest"
  10. with_items:
  11. - "{{ calico_node_manifests.results }}"
  12. when:
  13. - inventory_hostname == groups['kube-master'][0] and not item is skipped
  14. loop_control:
  15. label: "{{ item.item.file }}"
  16. - name: "calico upgrade complete"
  17. shell: "{{ bin_dir }}/calico-upgrade complete --no-prompts --apiconfigv1 /etc/calico/etcdv2.yml --apiconfigv3 /etc/calico/etcdv3.yml"
  18. when:
  19. - inventory_hostname == groups['kube-master'][0]
  20. - calico_upgrade_enabled|default(True)
  21. - calico_upgrade_needed|default(False)