roles

Do all files in a task role directory get included automatically, or only the main.yml?

If I have:
     roles/base/tasks/swappiness.yaml
                     /ntpd.yaml

Would they both get included when I add the role "base"?
Or do I have to add a main.yml file in there?

Hi,

You have to include main.yml. It is just simple as that and it also allows you to specify the order (can also be used for tags):