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

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



Comments


Add a Comment


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