Enabling or disabling check mode for Ansible tasks

There are two options:
  1. Force a task to run in check mode, even when the playbook is called without --check. This is called check_mode: yes.
  2. Force a task to run in normal mode and make changes to the system, even when the playbook is called with --check. This is called check_mode: no.

Comments