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.

32 lines
726 B

  1. ---
  2. - hosts: all
  3. vars:
  4. ansible_ssh_pipelining: true
  5. gather_facts: true
  6. - hosts: etcd:k8s-cluster:vault:calico-rr
  7. vars_prompt:
  8. name: "delete_nodes_confirmation"
  9. prompt: "Are you sure you want to delete nodes state? Type 'yes' to delete nodes."
  10. default: "no"
  11. private: no
  12. pre_tasks:
  13. - name: check confirmation
  14. fail:
  15. msg: "Delete nodes confirmation failed"
  16. when: delete_nodes_confirmation != "yes"
  17. - hosts: kube-master
  18. roles:
  19. - { role: remove-node/pre-remove, tags: pre-remove }
  20. - hosts: kube-node
  21. roles:
  22. - { role: kubespray-defaults }
  23. - { role: reset, tags: reset }
  24. - hosts: kube-master
  25. roles:
  26. - { role: remove-node/post-remove, tags: post-remove }