© Michael Heap 2016

Michael Heap, Ansible, 10.1007/978-1-4842-1659-0_8

8. Testing with Test Kitchen

Michael Heap

(1)Reading, Berkshire, UK

You’ve come a long way since you first started writing Ansible playbooks, but your workflow so far is missing something. You currently write a playbook, run it against a Vagrant machine, and then log in and inspect the results by hand. While this works, it’s not foolproof, and it definitely doesn’t scale once you start working with more than a handful of servers. Writing tests for playbooks is a good idea, as it means that you can prove that the playbook does what you expect it to do.

In this chapter, we’re going to take a look at a tool named Test Kitchen , or Kitchen, for short. Using Kitchen , you specify a ...

Get Ansible: From Beginner to Pro 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.