using vars_prompt in a vars file being addressed by include_vars

HI,

Got a quick question, I’m trying to use include_vars in a main play which addresses a vars file in which there is vars_prompt (i also have an include_tasks in the same main play which uses the variables being addressed by include_vars). when i run the main play there is no error, but it doesn’t prompt me for the items i got under vars_prompt in the vars file. to make it short, how can i use vars_prompt in a vars file being addressed by include_vars?

Thanks

Hello,

I think “vars_prompt” can only be used in the main playbook.

BR,

HI xxmlud,

yeah i couldn’t find any documents saying this is possible. as a remedy, i used pause module in the main play.

Thanks.