Support Check Mode in Your Module
Make custom code dry-run safe.
What Check Mode Is
With check mode, users run a playbook using --check to preview changes. Nothing is actually modified on the host.
ansible-playbook site.yml --checkYour Module Must Opt In
Check mode is not automatic. You declare support so Ansible knows your module promises to make no changes in this mode.
All lessons in this course
- When to Build a Custom Module
- AnsibleModule & Argument Spec
- Return JSON & Honor changed
- Support Check Mode in Your Module