user input problem

Right now the user input will come when the user runs the main playbook. The playbook is a series of include_tasks’s. While the inventory file contains vars but i would like the user input to help select what vars to use through the plays.

Example of vars in inventory would be:

ams03:
hosts:
localhost
vars:
ui: 886000428027
vmc01: am1vmhost1,am1vmhost2,am1vmhost3,am1vmhost4,am1vmhost5,am1vmhost6,am1vmhost7,am1vmhost8
vmc02: “‘am1vmhost9’,‘am1vmhost10’,‘am1vmhost11’,‘am1vmhost12’,‘am1vmhost13’,‘am1vmhost14’,‘am1vmhost15’,‘am1vmhost16’”
vmc01ports: [‘CL5-A’ , ‘CL5-B’ , ‘CL6-A’ , ‘CL6-B’]
vmc02ports: [‘CL7-A’ , ‘CL7-B’ , ‘CL8-A’ , ‘CL8-B’]

But the user will select what vmc## should be used

Through out the playbook the right hosts and ports need to be selected, but i am unsure how to ensure that.

In the future the input will come from an online form or other tool, but the values could still be passed the same.