Interview Prep/Ansible/Fundamentals and Architecture

What do the statuses in the PLAY RECAP mean?

BeginnerConceptFundamentals and Architecture
Answer
  • ok — task ran and made no change (or a fact/read-only task)
  • changed — task modified something
  • unreachable — SSH/connection failed for that host
  • failed — a task returned failure
  • skipped — a when condition was false
  • rescued — a failure was caught by a rescue block
  • ignored — a failure was ignored with ignore_errors

A second run of a well-written playbook should show changed=0. That is the quickest idempotency check.

All Ansible questions Roadmap: Ansible

More on Fundamentals and Architecture