Browse Source

fix: define variable for reset confirmation (#10303)

pull/10309/head
Mikhail Vintcukevich 1 year ago
committed by GitHub
parent
commit
4243003c94
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. 3
      playbooks/reset.yml

3
playbooks/reset.yml

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

Loading…
Cancel
Save