hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.21k stars 4.43k forks source link

Unable to use pip-install-for ansible on Red Hat/Rocky Linux 9 #13316

Closed alexgit2k closed 8 months ago

alexgit2k commented 9 months ago

Debug output

...
dnf -y install curl gcc libffi-devel openssl-devel python-crypto python-devel python-setuptools

Stdout from the command:

Rocky Linux 9 - BaseOS                          943 kB/s | 2.2 MB     00:02
Rocky Linux 9 - AppStream                       1.4 MB/s | 7.4 MB     00:05
Rocky Linux 9 - Extras                           12 kB/s |  14 kB     00:01
Package curl-7.76.1-26.el9_3.2.0.1.x86_64 is already installed.
No match for argument: python-crypto

Stderr from the command:

Error: Unable to find a match: python-crypto

Expected behavior

Install ansible via pip

Actual behavior

Package python-crypto can not be found

Reproduction information

Vagrant version

2.4.0

Host operating system

Windows 10

Guest operating system

Rocky Linux 9

Steps to reproduce

  1. vagrant up

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "rockylinux/9"

  config.vm.provision "ansible_local" do |ansible|
    ansible.install_mode = "pip"
    ansible.limit = "vagrant"
    ansible.provisioning_path = "/vagrant/ansible"
    ansible.playbook = "playbook.yml"
    ansible.inventory_path = "inventory"
  end

end
JonTheNiceGuy commented 8 months ago

This appears to be linked to #11299 where there is a quite detailed dig into what the issue is. There's also a work-around, but it's not ideal.

alexgit2k commented 8 months ago

@JonTheNiceGuy Thanks, that was very helpful. I will make a pull-request.