device
page-preview
page-preview
page-preview

Look Inside the book

Ansible will happily run a playbook that is a mess. Nothing warns you that a role has no README, that its variables are undocumented, or that a task is not idempotent — until it breaks downstream, on someone else’s shift.

This book covers the tools that catch those problems earlier: linting, syntax and check modes, input validation, Molecule, CI runners, secrets scanners, and compatibility matrices, with working examples you can drop into your own repositories.

  • Seven parts, from linting to compatibility matrices
  • Working examples in a public repository
  • Free updates through Leanpub
  • Written for people who already know Ansible
Purchase on Leanpub

Catch it before review

Static checks, linting, and syntax validation that fail in your editor instead of in someone else’s pull request queue.

Prove it runs twice

Check mode, idempotency runs, and Molecule scenarios that exercise a role against real containers before it reaches production.

Keep the secrets out

Scanners and vault practices that stop credentials from reaching a public repository in the first place.

"The only performance standard is zero defects."

Full Chapter Overview

Seven parts, working outward from static checks on a single file to compatibility matrices across operating systems and cloud providers.

Part 1

Quality Concepts - why, quality models, change review as humans

Part 2

Unit Testing - what is it, good READMEs, linting, pre-commit, syntax checks, input validation.

Part 3

Integration Testing - idempotency checks, implementations in pipelines

Part 4

System - compatibility checks with operating systems and cloud providers

Part 5

Security - secrets scanners, enforcement, configuration archives, DR planning

Part 6

Performance - configuration tips, Ansible Runs Ansible

Part 7

Compatibility - matrix of OS support

Read it on your favorite device!

Produce quality Ansible your grumpy neighbors would be proud of.

Examples you can run

Every example lives in a public repository. Clone it, break it, and watch the tools complain.

Updated as the tools change

Ansible testing tooling moves. Buy once on Leanpub and the revisions cost nothing extra.

Purchase on Leanpub
Image
David Norman

David Norman

- Quality Counselor, Ph.D.

You know that feeling that you’re not really finishing a project or that you can’t get your work done fast enough? It’s because you made a giant mess! This book will show you all the tools you need to cleanup after yourself and finally be proud of your work. Image

Notes on Ansible quality

Working notes on testing, linting, and keeping an Ansible library tidy.

Contact David

I care about fixing errors in this text, but your mere possession of this text doesn’t entitle you to my time for answering your questions. I’m much more likely to respond to questions sent to david@dkn.email if you have questions related to the clarity of this text. I’m not likely to respond if you have a general question about a Mac OS utility or about Ansible development unless you’re sending money, too (see also GitHub Sponsors, Paypal).

Consulting

deekayen.com

Email

david@dkn.email

GitHub

deekayen