diff --git a/playbooks/reset.yml b/playbooks/reset.yml index 654f0a1b7e1f2ab8d899b2d14d78317787492dc5..3f233e0c22275f9e08c1995995c72109134675dc 100644 --- a/playbooks/reset.yml +++ b/playbooks/reset.yml @@ -25,10 +25,13 @@ run_once: True when: - not (skip_confirmation | default(false) | bool) + - reset_confirmation is not defined - name: Check confirmation fail: msg: "Reset confirmation failed" - when: reset_confirmation != "yes" + when: + - not reset_confirmation | default(false) | bool + - not reset_confirmation_prompt.user_input | default("") == "yes" - name: Gather information about installed services service_facts: