# ansible script is failing when useing prompts

**URL:** <https://forum.ansible.com/t/ansible-script-is-failing-when-useing-prompts/33679>\
**Category:** Ansible Project\
**Created:** [August 26, 2020, 4:00pm UTC](https://forum.ansible.com/t/ansible-script-is-failing-when-useing-prompts/33679 "2020-08-26T16:00:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavan\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@pavan\_kumar](https://forum.ansible.com/u/pavan_kumar)\
**Post date:** [August 26, 2020, 4:00pm UTC](https://forum.ansible.com/t/ansible-script-is-failing-when-useing-prompts/33679/1 "2020-08-26T16:00:27Z")

</div>

’ I am new to ansible, I am having issue when executing my ansible playbook. My playbook just run a deploy-release script in destination. This deploy script ask to enter a version to deploy so I am using ansible prompt to input the release version that I need. But it is not working. However if I run the deployrelease script from my destination server directly it is working fine.

I am using below ansible-playbook to run. Please help me.

hosts: all

become: true

gather\_facts: no

vars\_prompt:

- name: “release\_version”

prompt: “Please select the release to deploy”

default: “1”

private: no

tasks:

- name: Deploying Model

become\_user: yes

shell: source /home/pavan/.bashrc && ./deploy-release -model

args:

executable: /bin/bash

chdir: /home/pavan/deployments/project/cmd

- name: Deploying Platform

become\_user: yes

shell: /home/pavan/.bashrc && ./deploy-release -platform

args:

executable: /bin/bash

chdir: /home/pavan/deployments/project/cmd`

thank you,

Pavan
