From 105436e80fda2cedf34318fbdf334d42c4de7041 Mon Sep 17 00:00:00 2001 From: dmotte <37443982+dmotte@users.noreply.github.com> Date: Sat, 9 Mar 2024 14:01:37 +0100 Subject: [PATCH] Omit executable if item.virtualenv is defined --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 4bad5c6..816bd6e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -17,5 +17,5 @@ virtualenv: "{{ item.virtualenv | default(omit) }}" state: "{{ item.state | default(omit) }}" extra_args: "{{ item.extra_args | default(omit) }}" - executable: "{{ pip_executable }}" + executable: "{{ item.virtualenv | default(false) | ternary(omit, pip_executable) }}" loop: "{{ pip_install_packages }}"