From 7bda6f1df7d69c48c5e516e39f0ff47cee738a97 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 12 Jul 2025 12:33:09 +0200 Subject: [PATCH] [PR #10380/20e9ef87 backport][stable-11] community.general.easy_install : use of the virtualenv_command parameter (#10388) 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