Remove "when" statement from vars_prompt
In ansible 2.10 when statement is not supported for vars_prompt. Also default behaviour will not ask for vars_prompt in case var is passed with -e or in non-interactive shell [1] [1] https://docs.ansible.com/ansible/latest/user_guide/playbooks_prompts.html Change-Id: I1fcb7d195139b82edfa17eba43a4ef9b6256297f
This commit is contained in:
parent
7ec0a966ab
commit
abb20e728b
@ -81,11 +81,9 @@
|
||||
prompt: "Are you sure you want to destroy the LXC containers?"
|
||||
default: "no"
|
||||
private: no
|
||||
when: force_containers_destroy is undefined
|
||||
- name: "force_containers_data_destroy"
|
||||
prompt: "Are you sure you want to destroy the LXC container data?"
|
||||
default: "no"
|
||||
private: no
|
||||
when: force_containers_data_destroy is undefined
|
||||
tags:
|
||||
- lxc-containers-destroy
|
||||
|
@ -102,11 +102,9 @@
|
||||
prompt: "Are you sure you want to destroy the nspawn containers?"
|
||||
default: "no"
|
||||
private: no
|
||||
when: force_containers_destroy is undefined
|
||||
- name: "force_containers_data_destroy"
|
||||
prompt: "Are you sure you want to destroy the nspawn container data?"
|
||||
default: "no"
|
||||
private: no
|
||||
when: force_containers_data_destroy is undefined
|
||||
tags:
|
||||
- nspawn-containers-destroy
|
||||
|
Loading…
Reference in New Issue
Block a user