I have always wanted to learn DevOps. I use Heroku for almost all my apps, but I wanted to learn what is happening every time I do git push heroku master.
I started learning Ansible recently using the 'Ansible for Devops' book. I used the concepts mentioned in this book and used the author's Ansible roles as a starting point to create a playbook for deploying Rails 6 apps.
I started learning Ansible recently using the 'Ansible for Devops' book. I used the concepts mentioned in this book and used the author's Ansible roles as a starting point to create a playbook for deploying Rails 6 apps.
Here's the code - https://github.com/EmailThis/ansible-rails
It includes roles for performing the following tasks -
* Installation of common packages, basic SSH security
* Install NGINX, Certbot (for Letsencrypt SSL Certs)
* Ruby (via rbenv)
* Rails 6, Puma, Sidekiq
* Redis
* Nodejs/Webpack/yarn
* Postgresql + saving backups to S3
* Deploying using Ansistrano