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:
Dmitriy Rabotyagov 2020-10-02 18:18:52 +03:00 committed by Jonathan Rosser
parent 7ec0a966ab
commit abb20e728b
2 changed files with 0 additions and 4 deletions

View File

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

View File

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