You are currently viewing Ansible Playbook

Ansible Playbook

Ansible Playbook

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed how to configure Ansible dynamic inventory for AWS.

https://cloudaffaire.com/ansible-dynamic-inventory-for-aws/

In this blog post, we will discuss Ansible Playbook. We will also create our 1st Playbook.

What is Ansible Playbook?

In previous blog posts, we have executed Ansible commands on an ad-hoc basis which is great for testing. But ad-hoc commands are not designed for reuse. If you want a more standard approach of configuration management, you need to use Ansible Playbook.

Playbooks are Ansible’s configuration, deployment, and orchestration language. They can describe a configuration state for your remote systems to deploy and maintain, or a set of steps in a general IT process. Each playbook is composed of one or more ‘plays’ in a list. The goal of a play is to map a group of hosts to some well-defined roles, represented by things ansible calls tasks. At a basic level, a task is nothing more than a call to an ansible module.

If Ansible modules are the tools in your workshop, playbooks are your instruction manuals, and your inventory of hosts are your raw material.

Next, we are going to create and deploy our 1st Playbook.

Ansible Playbook Demo:

Hope you have enjoyed this article. In the next blog post, we will discuss Ansible Playbook.

To get more details on Ansible, please refer below Ansible documentation.

https://docs.ansible.com/