Open k6Q28k5w5eWuRuuzTg9j7GrKCbjt7 opened 4 years ago
Hey there, as specified in the referenced issue, installing git is not something that the ansible provisioner does. To resolve this, please use a box that already has git installed, or use a shell provisioner to install git.
One can never use the "galaxy_role_file" option without first provisioning a fix first.
One way to resolve this is to use a box that already has git installed
Whats the purpose of the option if the fix leads to more code than what the option tries to solve?
I see where you are coming from here. Part of the point here is to make things easier for the user.
@gildegoma @chrisroberts any thoughts on making Vagrant check for git when using ansible galaxy?
Vagrant version
Vagrant 2.2.10
Host operating system
Arch Linux 64bit
Guest operating system
debian/10
Vagrantfile
Debug output
Expected behavior
Ansible should install roles from galaxy. From the docs: "Note: By default, Vagrant will try to automatically install Ansible if it is not yet present on the guest machine."
One can never use the "galaxy_role_file" option without first provisioning a fix first. Whats the purpose of the option if the fix leads to more code than what the option tries to solve?
A simple patch could be to automatically add git when a "galaxy_role_file" is set (dependency). When its available as an option, I expect it to work.
Actual behavior
Error thrown, role is not installed. Galaxy is invoked right after ansible_local is installed which will always break unless explicit intervention.
Steps to reproduce
References