title: Prompts in Jenkins
body: <p>I am trying to install software on centos 7 using ansible playbook through jenkins.</p>
  
  <p>I am trying to call ansible playbook from jenkins for installing the software.</p>
  
  <p>I am using vars_prompt in ansible playbook to pass some user-defined parameters, when i run the ansible playbook manually, it asks for prompts and runs successfully but when i build using jenkins it doesn't prompt for any inputs.</p>
  
  <p>Pipeline:</p>
  
  <pre><code>node {
      ansiblePlaybook(
          installation: 'FirstAnsibleTest',
          inventory: '/etc/ansible/hosts',
          playbook: '/etc/ansible/install.yml',
          become: true,
          colorized: true,
          )
  }
  </code></pre>
  
  <p>install.yml:</p>
  
  <pre><code>- hosts: all
    vars_prompt:
     - name: "webusername"
       prompt: "Enter webusername"
     - name: "webpassword"
       prompt: "Enter webpassword"
       private: yes
    tasks:
     - import_tasks: /etc/ansible/roles/installe/tasks/main.yml
  </code></pre>
  
  <p>How can I make jenkins to ask for prompts that can be passed to the ansible playbook?</p>