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.

17 lines
520 B

  1. ---
  2. - name: Flannel | Start 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: "{{ flannel_node_manifests.results }}"
  11. when: inventory_hostname == groups['kube-master'][0] and not item is skipped
  12. - name: Flannel | Wait for flannel subnet.env file presence
  13. wait_for:
  14. path: /run/flannel/subnet.env
  15. delay: 5
  16. timeout: 600