mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
reset_confirmation in reset.yml (#10288)
* Update reset.yml reset confirmation user input fix * Update reset.yml added default for non-interactive run in ci/cd * fix reset_confirmation in reset.yml * skip reset_confirmation promtp when reset_confirmation is defined via extra-vars option (for tests) * check both string type and object type with user_input for reset_confirmation var * reset_confirmation_prompt in conjunction with reset_confirmation improvement inspired by: https://github.com/kubernetes-sigs/kubespray/pull/10288#issuecomment-1637056880
This commit is contained in:
@@ -25,10 +25,13 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
when:
|
when:
|
||||||
- not (skip_confirmation | default(false) | bool)
|
- not (skip_confirmation | default(false) | bool)
|
||||||
|
- reset_confirmation is not defined
|
||||||
- name: Check confirmation
|
- name: Check confirmation
|
||||||
fail:
|
fail:
|
||||||
msg: "Reset confirmation failed"
|
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
|
- name: Gather information about installed services
|
||||||
service_facts:
|
service_facts:
|
||||||
|
|||||||
Reference in New Issue
Block a user