© Peter Membrey and Shaun R Smith 2022
S. R. Smith, P. MembreyBeginning Ansible Concepts and Applicationhttps://doi.org/10.1007/978-1-4842-8173-4_4

4. Your First Playbook

Shaun R Smith1   and Peter Membrey2
Hong Kong, New Territories, Hong Kong
Kowloon, Hong Kong
It is assumed at this stage that you have followed along with the exercises in the previous chapters and therefore have a working
  1. 1.

    Vagrant environment up and running

  2. 2.

    Inventory file with correct groups

  3. 3.

    Ansible configuration file


If that is not the case, please download the source code accompanying this book and copy the files from the Chapter 3 directory.

Modules and Tasks

In the previous chapters, we introduced you to the concept of a module , and we made use of a module called

Get Beginning Ansible Concepts and Application: Provisioning, Configuring, and Managing Servers, Applications, and Their Dependencies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.