Book Image

Containerization with Ansible 2

By : Aric Renzo
Book Image

Containerization with Ansible 2

By: Aric Renzo

Overview of this book

<p>Today many organizations are adopting containerization and DevOps methodologies to improve the flexibility and reliability of deploying new applications. Building custom application containers often means leveraging brittle and oftentimes complex Dockerfiles that can lead to cumbersome, multi-layered containers. Ansible Container brings a new workflow for managing the development of containers from development all the way through to production. The goal of this book is to get you up and running with Ansible Container so that you can create container images from Ansible roles, run containers locally, and deploy them to the cloud.</p> <p>We’ll progress from a simple, single container application, to a complex application consisting of multiple, connected containers. You’ll learn how to run the application locally, how to deploy it to an OpenShift cluster running locally, and how to deploy it to a Kubernetes cluster running in the cloud. Along the way, you’ll see how to use roles to define each image or micro-service, and how to share your completed project with the Ansible community. Next, you will be able to take full advantage of Ansible Container, and use it to automate the container lifecycle in your own projects.</p> <p>By the end of this book,you will gain mastery of the Ansible Container platform by building complex multi-container projects ready for deployment into production.</p>
Table of Contents (16 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Summary


Over the course of this chapter, we looked at the final Ansible Container workflow command: ansible-container deploy. deploy is one of the most versatile commands available in the Ansible Container arsenal since it allows us to run and manage containers in production-grade Kubernetes and OpenShift environments. deploy opens a new path in our journey to enable the flexibility and agility that containers give our infrastructure. We can now truly use a single tool to not only build and debug containerized applications locally, but also to deploy and manage these same applications in production. Having the ability to use the same expressive Ansible Playbook language to truly build reliable and scalable applications means that deployments can be built around DevOps and automation best practices from day one, instead of the painstaking task of re-engineering deployments so they are automated after the fact.

Just because we have finished learning about the major Ansible Container workflow...