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

  1. ---
  2. - hosts: all
  3. vars_prompt:
  4. name: "reset_confirmation"
  5. prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
  6. default: "no"
  7. private: no
  8. pre_tasks:
  9. - name: check confirmation
  10. fail:
  11. msg: "Reset confirmation failed"
  12. when: reset_confirmation != "yes"
  13. roles:
  14. - { role: reset, tags: reset }