Infra: Vagrant ansible version 36/32136/1
authorpmikus <pmikus@cisco.com>
Tue, 27 Apr 2021 12:56:06 +0000 (12:56 +0000)
committerpmikus <pmikus@cisco.com>
Tue, 27 Apr 2021 12:56:06 +0000 (12:56 +0000)
+ In some corner cases wrong ansible version can be installed.
  Fixing to specific version.

Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ia7f1a5644454af0819d06dbac900f69d083ca475

csit.infra.vagrant/Vagrantfile

index f951425..8a6e8d1 100644 (file)
@@ -32,7 +32,9 @@ Vagrant.configure("2") do |config|
     # Provision the box using ansible local (no Ansible installation needed
     # on host).
     config.vm.provision "ansible_local" do |ansible|
-        ansible.version = "latest"
+        ansible.version = "2.10.8"
+        ansible.install_mode = "pip"
+        ansible.pip_install_cmd = "curl -s https://bootstrap.pypa.io/get-pip.py | sudo python3"
         ansible.become = true
         ansible.verbose = false
         ansible.limit = "vagrant"