Ansible - --list-tasks command line option (Parallelism)
by
Jeremy Canfield |
Updated: March 08 2021
| Ansible articles
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: []
Did you find this article helpful?
If so, consider buying me a coffee over at