I am developing an application deployment program using Ansible.
The task entails:
Prompt for release number.
Prompt for environment: QA or prod.
Prompt for the target server.
Copy data and configure it
Prompt if app needs to be stopped and stop it if needed.
Pause for admin to make links to files only they are allowed to do.
Finalize configuration and start app.
I want to use Ansible as much as possible, but I also want to use the best tool for each job. So first I thought that at the end will have a mixture of ansible and python and bash scripts.
Can Ansible perform all of the steps above well enough to use only Ansible, or is it usually a mix anyway?
Initially I thought that perhaps I could get the user data with a script and then pass target release and env to ansible as variables.
Many ways to skin that rabbit but I hope to benefit from the experience of sombody’s similar effort, if any.
Thanks