0Pricing
Ansible Academy · Lesson

Install Nginx in Five Lines

Write a first useful, real playbook.

A Real, Useful Playbook

Time to build something real. You will write a tiny playbook that installs the nginx web server on your hosts.

Start the Play

Every playbook begins with a dash and the hosts line that names the group you want to configure.

---
- hosts: web

All lessons in this course

  1. YAML Syntax You Need for Ansible
  2. From Ad-Hoc to a Repeatable Playbook
  3. Run It with ansible-playbook
  4. Install Nginx in Five Lines
← Back to Ansible Academy