It is possible. If not within the the module use with_items or loops. Give 
zypper a list

Sent from Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: ansible-project@googlegroups.com <ansible-project@googlegroups.com> on 
behalf of Dick Visser <dnmvis...@gmail.com>
Sent: Tuesday, September 19, 2023 8:19:55 AM
To: ansible-project@googlegroups.com <ansible-project@googlegroups.com>
Subject: Re: [ansible-project] Install multiple named packages with 
'community.general.zypper'



On Mon, 18 Sept 2023 at 22:16, 'Terry Lemons' via Ansible Project 
<ansible-project@googlegroups.com<mailto:ansible-project@googlegroups.com>> 
wrote:
Hi - I need to install ~30 specific packages on a SLES 15 system using Ansible. 
Instead of specifying 30 individual 'community.general.zypper' tasks, I'd like 
to run a single 'community.general.zypper' task and provide it either with a 
long list of packages or a filename containing the package list. This doesn't 
seem to be possible, given my read of the 'community.general.zypper' 
documentation; is that true?

The way I read it 
(https://docs.ansible.com/ansible/latest/collections/community/general/zypper_module.html#parameter-name),
 that is not true.
It is possible to supply a list:

Package name name or package specifier or a list of either.



--
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLY_8Eo-WveYazFQuSwB_ZqF54%3DcbU7DvVk7%2BmgjAJ89bQ%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAF8BbLY_8Eo-WveYazFQuSwB_ZqF54%3DcbU7DvVk7%2BmgjAJ89bQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/SYBP282MB3525ED7145FF006DF8959F4AADFBA%40SYBP282MB3525.AUSP282.PROD.OUTLOOK.COM.

Reply via email to