The --list-tasks command line option can be used to output the tasks that would have been invoked in a playbook.
ansible-playbook example.yml --list-tasks
Which should return something like this. Notice the output includes tags. Refer to Ansible - Getting Started with Tags to understand tags.
playbook: example.yml play #1 (all): all TAGS:  tasks: name of your first task TAGS:  name of your second task TAGS:  name of your third task TAGS: