I'm very new to Ansible and the whole team of DevOps.
Previously I had experience with Envoyer provided by Laravel. Now I wanted to use Ansible or similar service for handling auto-deploy task. What I mean is that I want to be able to deploy my apps only with single command git push
, and depending on the branch I pushed to the app should be deployed to different servers.
After what I've read about Ansible it looks like I will need at least run additional command like executing playbook, plus any of devs working on the same project will need to install ansible on local machine.
So Envoyer or CodeShip uses git hooks for that, after push is done CodeShip makes git pull and runs necessary commands. Not sure how Ansible may help here.
Plus, what's important, as I realize when I deploy frontend application which is build by npm run build
, I need to deploy only the result of this command, like a folder with concatenated & minified etc files, holding the result of build. The building process itself probably should be done on another machine. So I guess Ansible won't help me here?