Ansible - --list-tasks command line option (Parallelism)

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 Buy Me A Coffee

Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





Please enter 5545c in the box below so that we can be sure you are a human.