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: []
      name of your first task  TAGS: []
      name of your second task  TAGS: []
      name of your third task  TAGS: []


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 a02f2 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |