FreeBSD: Ansible - Refer to a pkg origin

This avoids manually submitting python version bumps.

Related to: 582f46231b,
            e95a7f3e8a
This commit is contained in:
Jose Luis Duran 2021-07-07 13:53:43 -03:00
parent cfde89b867
commit 03a1b77420
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ module VagrantPlugins
if install_mode != :default
raise Ansible::Errors::AnsiblePipInstallIsNotSupported
else
machine.communicate.sudo "pkg install -qy py37-ansible"
machine.communicate.sudo "pkg install -qy sysutils/ansible"
end
end

View file

@ -31,7 +31,7 @@ describe VagrantPlugins::Ansible::Cap::Guest::FreeBSD::AnsibleInstall do
describe "when install_mode is :default (or unknown)" do
it "installs ansible with 'pkg' package manager" do
expect(communicator).to receive(:sudo).with("pkg install -qy py37-ansible")
expect(communicator).to receive(:sudo).with("pkg install -qy sysutils/ansible")
subject.ansible_install(machine, :default, "", "", "")
end