Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ansible - list tasks in role

Is it possible to list the tasks in an Ansible role?

i.e. other than just grepping for - name, is there an out-of-the-box way of doing this?

like image 646
Snowcrash Avatar asked Oct 21 '25 12:10

Snowcrash


1 Answers

Create a simple playbook specifying the role and execute ansible-playbook with --list-tasks option.

But this will not list the tasks in dynamically included files.

like image 124
techraf Avatar answered Oct 23 '25 08:10

techraf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!