Learning DevOps
上QQ阅读APP看书,第一时间看更新

Writing the first playbook

One of the essential elements of Ansible is the playbook because, as stipulated in the introduction, it contains the code of the actions or tasks that need to be performed to configure or administer a VM.

Indeed, once the VM is provisioned, it must be configured, with the installation of all of the middleware needed to run the applications that will be hosted on this VM. Also, it is necessary to perform administrative tasks concerning the configuration of directories and their access.

In this section, we will see what a playbook is made up of, its modules, and how to improve our playbook with roles.

Now, let's start studying how to write a basic playbook.