Is there any consensus on where to put a Vagrantfile for testing?
The most straight forward ive seen is the vagrant file in the root of the roles folder with a folder called roles for vagrant to pick up on, and a symlink in there to ‘…’ (pointing back to the root of the role folder) which is great until you try it on windows.
another approach is a folder with the role(s) inside, as done with ceph. but then you cant just drop them into your roles folder.
We do it like this: https://github.com/Oefenweb/ansible-fail2ban in all our roles.
Never tested Windows, but I think it should work.
Ive been putting
ENV[“ANSIBLE_ROLES_PATH”] = ‘…’
in my vagrant files. but i like your way better.
I have began to include a Vagrantfile to spin up some roles as well. Also starting to include a Dockerfile with some as well. Here are two examples.
https://github.com/mrlesmithjr/ansible-snort
https://github.com/mrlesmithjr/ansible-graylog