AnsiblePlugin icon indicating copy to clipboard operation
AnsiblePlugin copied to clipboard

Path to role tasks

Open mrlexor opened this issue 4 years ago • 4 comments

Hello!

At the moment, as I understand, plugin indexing of a role task which are in role_name/tasks/task_name.yml, but when I put of the role task to role_name/tasks/whatever/task_name.yml plugin stops working.

Can you added indexing the following path: role_name/tasks/whatever/task_name.yml?

mrlexor avatar Nov 15 '20 20:11 mrlexor

Hello Currently plugin searches for roles/[role_name]/tasks/main.yml. Do you have main.yml in your tasks directory?

MSDehghan avatar Nov 17 '20 10:11 MSDehghan

Yes, main.yml exists in my directory, but main.yml contains include tasks, for example: - include: configure/main.yml In this way I have the following structure: roles/[role_name]/tasks/main.yml roles/[role_name]/tasks/configure/main.yml

mrlexor avatar Nov 18 '20 16:11 mrlexor

You're right. Plugin does not detect files in tasks sub-directories. I'll fix that. Thank you

MSDehghan avatar Nov 18 '20 16:11 MSDehghan

generally it should be possible to apply the plugin to all yaml files, e.g. also playbooks

azrdev avatar Mar 11 '21 11:03 azrdev