ansible: migrate to python@3.11
parent
d1f65b45c4
commit
6c4fad3d7a
|
@ -22,7 +22,7 @@ class Ansible < Formula
|
|||
depends_on "pkg-config" => :build
|
||||
depends_on "rust" => :build
|
||||
depends_on "openssl@1.1"
|
||||
depends_on "python@3.10"
|
||||
depends_on "python@3.11"
|
||||
depends_on "pyyaml"
|
||||
depends_on "six"
|
||||
|
||||
|
@ -564,7 +564,7 @@ class Ansible < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
venv = virtualenv_create(libexec, "python3.10")
|
||||
venv = virtualenv_create(libexec, "python3.11")
|
||||
# Install all of the resources declared on the formula into the virtualenv.
|
||||
resources.each do |r|
|
||||
# ansible-core provides all ansible binaries
|
||||
|
@ -593,7 +593,7 @@ class Ansible < Formula
|
|||
EOS
|
||||
(testpath/"hosts.ini").write [
|
||||
"localhost ansible_connection=local",
|
||||
" ansible_python_interpreter=#{Formula["python@3.10"].opt_bin}/python3.10",
|
||||
" ansible_python_interpreter=#{Formula["python@3.11"].opt_bin}/python3.11",
|
||||
"\n",
|
||||
].join
|
||||
system bin/"ansible-playbook", testpath/"playbook.yml", "-i", testpath/"hosts.ini"
|
||||
|
|
Loading…
Reference in New Issue