Skip to content

Commit

Permalink
reset_confirmation_prompt in conjunction with reset_confirmation
Browse files Browse the repository at this point in the history
improvement inspired by:
#10288 (comment)
  • Loading branch information
somewho authored Jul 16, 2023
1 parent ab96fb9 commit 849cc5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playbooks/reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
- name: Check confirmation
fail:
msg: "Reset confirmation failed"
when: ((reset_confirmation.user_input | default(reset_confirmation)) | default('no')) != "yes"
when:
- not reset_confirmation | default(false) | bool
- not reset_confirmation_prompt.user_input | default("") == "yes"

- name: Gather information about installed services
service_facts:
Expand Down

0 comments on commit 849cc5f

Please sign in to comment.