MSDehghan / AnsiblePlugin

IntelliJ plugin that helps developing Ansible files
129 stars 16 forks source link

Path to role tasks #8

Open mrlexor opened 3 years ago

mrlexor commented 3 years ago

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?

MSDehghan commented 3 years ago

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

mrlexor commented 3 years ago

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

MSDehghan commented 3 years ago

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

azrdev commented 3 years ago

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