Skip to content

Glossary: Ansible and Server Automation

changed_when

Also written: failed_when, in (operator)

Keywords that let you decide when a task counts as changed or failed, for example `changed_when: false` on a read-only command. Conditions can use `in`, true when the text on the left appears in the text on the right.

Where the book teaches it

Related terms

commandIdempotent