October 2018
Beginner
232 pages
7h 52m
English
An Ansible Playbook is a configuration file used by Ansible. You can think of it as a Vagrantfile for Vagrant. It uses the YAML (Yet Another Markup Language) markup language as the syntax and is easily readable:
--- - hosts: all sudo: yes tasks: - name: ensure nginx is at the latest version apt: name=nginx state=latest - name: start nginx service: name: nginx state: started
Let's look at the example playbook we created in the previous section, shown here in the above code block, and dissect it to get a better understanding of what it all means:
Read now
Unlock full access