AFAICT, after Ansible 2.3.0.0 was released, when I run ‘ansible-galaxy install -r roles.yaml’ if any filename within the role begins with the name of the role, then that filename will be changed to remove the name of the role.
For example, in role foo, of there is a file templates/foo.conf.j2, ansible-galaxy install will change that filename to .conf.j2 , etc.
Needless to say, this causes alot of problems subsequently when roles are run and files cannot be found.
Reverting to Ansible 2.2.2.0 works around the problem for me.
To provide a bit more context, I have a “late command” shell script that is invoked via the Ubuntu preseed installer on a fresh install.
That shell script installs Ansible via pip, gets the roles.yml file, and then runs ansible-galaxy install -r roles.yml, prior to running ansible-playbook on a playbook that configures the freshly installed machine…