From 3607e3d012b07f7f1f63e71db99486e70e660d09 Mon Sep 17 00:00:00 2001 From: Alexei Znamensky <103110+russoz@users.noreply.github.com> Date: Sat, 24 Aug 2024 17:14:13 +1200 Subject: [PATCH] pipx: add doc example (#8792) --- plugins/modules/pipx.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/modules/pipx.py b/plugins/modules/pipx.py index 372d4bec01..7f4954850f 100644 --- a/plugins/modules/pipx.py +++ b/plugins/modules/pipx.py @@ -163,6 +163,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 }}" '''