files alongside group_vars, instead of in roles/role_name/files

For all my environments there are entire files that lend themselves best to not be templated. Just one per environment will do.

I use roles, and my directory structure is as follows

├── env_iodtest [directory]

│ ├── group_vars [directory]

│ │ └── all [file]

│ └── inventory [file]

├── install.yml [file]

└── roles [directory]

├── install_base [directory]

│ └── tasks [directory]

│ └── main.yml [file]

It would make sense, for now at least, to have this file inside each of my environments so we have

├── env_iodtest [directory]

│ ├── group_vars [directory]

│ │ └── all [file]

│ ├── files [directory - proposed]

│ │ └── vast.list.of.settings [file - proposed]

│ └── inventory [file]

Is this possible?

Hacky way that works.

  • name: install vast.list.of.settings

copy: src=…/…/…/{{ mule_environment }}/files/vast.list.of.settings dest={{ mule_home }}/conf

Good or bad?

​There's no problem using this. You might want to look if one of the
special vars help though, to make this cleaner:

​playbook_dir
inventory_dir

Yep, {{ inventory_dir }}/files/blah works. Thanks!

“For all my environments there are entire files that lend themselves best to not be templated. Just one per environment will do.”

Having trouble parsing what you want to do here.

Ok, good!