Which playbook flags help you inspect and debug before a real run?
BeginnerConceptPlaybooks, Plays, Tasks and Handlers
Answer
ansible-playbook site.yml --syntax-check # parse only
ansible-playbook site.yml --list-hosts # which hosts match
ansible-playbook site.yml --list-tasks # tasks that would run
ansible-playbook site.yml --check --diff # dry run with diffs
ansible-playbook site.yml --step # confirm each task
ansible-playbook site.yml --start-at-task "Install nginx"
ansible-playbook site.yml -vvv # connection-level debug
--list-tasks combined with --tags shows exactly what a tag selection will run.
More on Playbooks, Plays, Tasks and Handlers
What is a playbook?BeginnerWhat are the main keys of a play?BeginnerWhy should every task have a `name`?BeginnerWhat is a handler and how is it triggered?BeginnerWhat are the behaviours and gotchas of handlers?IntermediateHow do you run handlers immediately instead of at the end of the play?Intermediate