Error when using vars_files and vars_prompt in same playbook

Hello,

I'm new to Ansible and I'm not sure if this is a bug or if I'm doing
something wrong. I currently have a playbook which has vars_prompt and
vars_files in it and no matter what I do, I get a Python error. Here is
the playbook:

Ok, this is the classic computer error of an error being raised while
it is trying to tell you what the actual error really was.

It looks like you want to do

   - name:

as opposed to

   - (newline)
     name:

at least at first glance.

We should definitely intercept the error condition such that we don't
give you a traceback in that case, so that itself is a bug. Can you
file one and make sure the playbook you used to reproduce it is in the
ticket?

Otherwise, fixing the format error should make the error (and the
traceback) disappear. Using vars_files/vars_prompt together is
definitely legal.

Hope that helps!

--Michael