From adf0f41b4b97d76e775d2d8d2e155b93d9d6560b Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 12 Jul 2025 12:33:12 +0200 Subject: [PATCH] [PR #10380/20e9ef87 backport][stable-10] community.general.easy_install : use of the virtualenv_command parameter (#10387) community.general.easy_install : use of the virtualenv_command parameter (#10380) * community.general.easy_install : use of the virtualenv_command parameter * Apply suggestions from code review --------- (cherry picked from commit 20e9ef877f6706b12b47d59d864dac51eeb2291c) Co-authored-by: Aditya Putta Co-authored-by: Abhijeet Kasurde --- plugins/modules/easy_install.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/modules/easy_install.py b/plugins/modules/easy_install.py index 734f0dc4df..0f66ed3add 100644 --- a/plugins/modules/easy_install.py +++ b/plugins/modules/easy_install.py @@ -74,6 +74,12 @@ EXAMPLES = r""" community.general.easy_install: name: bottle virtualenv: /webapps/myapp/venv + +- name: Install a python package using pyvenv as the virtualenv tool + community.general.easy_install: + name: package_name + virtualenv: /opt/myenv + virtualenv_command: pyvenv """ import os