---
hosts: appserver
tasks:
- name: Get the latest release.
local_action: shell grep XXX /tmp/releases | cut -f2 -d':' | tr -d "," | tr -d "'"
register: rel
--->>>< "Deploying release {{ rel.stdout }} Correct? (y/n): " > prompt goes here <<< ----
- name: Remove old installation files.
script: /tmp/clean.sh "{{ rel.stdout }}"
- name: Run local build.
local_action: shell /tmp/build.py "{{ inventory_hostname }}" "{{ rel.stdout }}"
- name: Run deploy.py on target.
script: /export/home/jsuriol/deploy/migration/apps/TV2G/tools/deploy.py "{{ rel.stdout }}"
Thank you for your patience with neophites...
Look at the pause module for this functionality
Brian Coca
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/34d19682-1481-4c97-bec1-c34093c96c54%40googlegroups.com.
You can give input which is available through registered variables