fix: define variable for reset confirmation (#10303)

This commit is contained in:
Mikhail Vintcukevich
2023-07-24 09:58:14 +03:00
committed by GitHub
parent 050bd0527f
commit 4243003c94

View File

@ -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"