From 4f5a50642d3be69924826f9d2b6113ab047473ef Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 11:35:04 +0200 Subject: [PATCH] [PR #8792/3607e3d0 backport][stable-8] pipx: add doc example (#8800) pipx: add doc example (#8792) (cherry picked from commit 3607e3d012b07f7f1f63e71db99486e70e660d09) Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --- plugins/modules/pipx.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/modules/pipx.py b/plugins/modules/pipx.py index 705cc71a77..08b3d04bb9 100644 --- a/plugins/modules/pipx.py +++ b/plugins/modules/pipx.py @@ -157,6 +157,17 @@ EXAMPLES = ''' community.general.pipx: name: pycowsay state: absent + +- name: Install multiple packages from list + vars: + pipx_packages: + - pycowsay + - black + - tox + community.general.pipx: + name: "{{ item }}" + state: latest + with_items: "{{ pipx_packages }}" '''