# user input problem

**URL:** <https://forum.ansible.com/t/user-input-problem/31182>\
**Category:** Ansible Project\
**Created:** [August 30, 2019, 8:18pm UTC](https://forum.ansible.com/t/user-input-problem/31182 "2019-08-30T20:18:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Britton](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Post date:** [August 30, 2019, 8:18pm UTC](https://forum.ansible.com/t/user-input-problem/31182/1 "2019-08-30T20:18:44Z")

</div>

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.
