Computer Science, asked by Sachinbabbar4998, 1 year ago

Which folder does not require main.yml file?

Answers

Answered by amit1203
0

Roles expect files to be in certain directory names. Roles must include at least one of these directories, however it is perfectly fine to exclude any which are not being used. When in use, each directory must contain a main.yml file

Answered by Anonymous
0

Folders that does not require main.yml file are:

  • Roles directory structure must include atleast on of the directories, it is perfectly fine to exclude files that are not being used.
  • Each diectory should contain main.yml file, which contain relevant contents.
  • Documentation states that main.yml must be present in all directories in a playbook role.
  • Ansible roles uses each of those files as the entry point for reading the contents of the directory.
Similar questions