From cc3969c98a45e1130c10c04b50ea41da60715901 Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Fri, 11 Jul 2025 00:00:45 -0500 Subject: [PATCH 1/2] community.general.easy_install : use of the virtualenv_command parameter --- 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 734f0dc4df6..2d07104c068 100644 --- a/plugins/modules/easy_install.py +++ b/plugins/modules/easy_install.py @@ -74,6 +74,12 @@ community.general.easy_install: name: bottle virtualenv: /webapps/myapp/venv + +- name: Install requests using pyvenv as the virtualenv tool + community.general.easy_install: + name: requests + virtualenv: /opt/myenv + virtualenv_command: pyvenv """ import os From 605fe9aa24c04d4fc93271334f818d8c7fdbc337 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 11 Jul 2025 13:17:19 -0700 Subject: [PATCH 2/2] Apply suggestions from code review --- plugins/modules/easy_install.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/modules/easy_install.py b/plugins/modules/easy_install.py index 2d07104c068..0f66ed3addc 100644 --- a/plugins/modules/easy_install.py +++ b/plugins/modules/easy_install.py @@ -74,10 +74,10 @@ community.general.easy_install: name: bottle virtualenv: /webapps/myapp/venv - -- name: Install requests using pyvenv as the virtualenv tool + +- name: Install a python package using pyvenv as the virtualenv tool community.general.easy_install: - name: requests + name: package_name virtualenv: /opt/myenv virtualenv_command: pyvenv """