' 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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/be0c440e-0a53-4476-b4cd-c6600eb8ad82n%40googlegroups.com.