Skip to content

Commit

Permalink
fix: define variable for reset confirmation (#10303)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishavint committed Jul 24, 2023
1 parent 050bd05 commit 4243003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playbooks/reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
- name: Reset Confirmation
pause:
prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
register: reset_confirmation
register: reset_confirmation_prompt
run_once: True
when:
- not (skip_confirmation | default(false) | bool)
- reset_confirmation is not defined

- name: Check confirmation
fail:
msg: "Reset confirmation failed"
Expand Down

0 comments on commit 4243003

Please sign in to comment.