From Ad-Hoc to a Repeatable Playbook
Turn commands into a saved YAML file.
Ad-Hoc Commands Vanish
An ad-hoc command runs once and is gone. It is great for quick checks, but it leaves no record of what you did.
ansible web -m service -a "name=nginx state=started"A Playbook Is Saved Work
A playbook writes that same intent into a YAML file. You commit it, share it, and run it again whenever you need.
All lessons in this course
- YAML Syntax You Need for Ansible
- From Ad-Hoc to a Repeatable Playbook
- Run It with ansible-playbook
- Install Nginx in Five Lines