ansible_local: Fix pip setup on Arch Linux guest

Add 'python' package requirement. Tested against `archlinux/archlinux`
box, at version "2019.11.24".
This commit is contained in:
Gilles Cornu 2019-12-01 11:39:43 +01:00 committed by Brian Cain
parent 069122f42c
commit bcdda99dfa
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ module VagrantPlugins
def self.pip_setup(machine, pip_install_cmd = "")
machine.communicate.sudo "pacman -Syy --noconfirm"
machine.communicate.sudo "pacman -S --noconfirm base-devel curl git"
machine.communicate.sudo "pacman -S --noconfirm base-devel curl git python"
Pip::get_pip machine, pip_install_cmd
end

View File

@ -32,7 +32,7 @@ describe VagrantPlugins::Ansible::Cap::Guest::Arch::AnsibleInstall do
expect(communicator).to receive(:sudo).once.ordered.
with("pacman -Syy --noconfirm")
expect(communicator).to receive(:sudo).once.ordered.
with("pacman -S --noconfirm base-devel curl git")
with("pacman -S --noconfirm base-devel curl git python")
expect(VagrantPlugins::Ansible::Cap::Guest::Pip).to receive(:get_pip).once.ordered.
with(machine, pip_install_cmd)