I have a folder called roles and what I need is to get a set of all ansible modules used. When ansible parses playbooks and roles it gets modules to run. Maybe someone know how to parse role and get only modules from it? For example if I have role: roles |-test |-tasks |-main.yml
- name: Download and unarchive
unarchive:
....
- name: Install
package:
....
after parsing this folser the output should be: ("unrchive", "package")