Automate your DevOps

Learn how to painlessly set up your servers and leverage

CI/CD to handle zero downtime deployment.

With the addition of tests into the deployment pipeline , you will be at ease knowing that your system won't go down because of something you could foresee. Learn how to write Ansible scripts, simple tests and more.

This book gives you insight on how to use automation tools like Ansible to set up your servers and craft great pipelines to handle deployment, giving your systems zero downtime .

Table of Contents

This book is divided into two parts; Server Setup and Testing & Deployment. It mainly focuses on the use of Ansible to setup fresh instances of Ubuntu 18.04. We will go through performing automated updates of the system, enabling Unattended upgrades and setting up a LEMP stack comprising of PHP 7.3, Nginx, Percona (drop-in replacement of MySQL) and Redis for caching.

We will then build a docker image that will closely resemble our server environment. This will be our testing environment that we will hook up to GitLab and setup our CI/CD pipeline to handle the testing and zero downtime deployment.

The set up and deployment services used in this book are free and open source.