When running this role I am getting the following error:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.deb' is available"}
This is happening because in the install_Ubuntu.yml task it is calling the package module using the name parameter but passing a list of urls to a deb.
The only way to install a deb from a url according to ansible docs is by using the deb parameter.
When running this role I am getting the following error:
This is happening because in the
install_Ubuntu.yml
task it is calling the package module using the name parameter but passing a list of urls to a deb. The only way to install a deb from a url according to ansible docs is by using the deb parameter.Here is one way of fixing the error:
I'm sure there is probably a better way to address this issue rather than using the snippet above.