title: Unable to give hostname as input parameter in groovy to run ansible playbook
body: <p>stage("Applying Patches") {
                  script {
                      env.RELEASE_SCOPE = input message: 'Choose an option to patch servers??', ok: 'Proceed!',
                              parameters: [choice(name: 'RELEASE_SCOPE', choices: 'ALL-PACKAGES\nSECURITY', string: $hostname, description: 'xyz')]
                  }
          }
  stage("patch_update"){</p>
  
  <pre><code>        if (env.RELEASE_SCOPE == 'ALL-PACKAGES'){
              sh '''cd /data/jenkinsprod/workspace/demo@script &amp;&amp; ansible-playbook -i hosts roles/patch.yml -e "type=''" --limit ${hostname}'''
         }
  </code></pre>
  
  <p>i wanted to give hostname as input argument to ansible from groovy.</p>