On 06.05.16 10:56 [email protected] wrote: > Hi, > > Is it possible to pass list of packages with --extra-vars that needs to be > installed with apt? I don't want to update the playbook everytime with list > of package. Currently I can pass one package and it installed fine.
Use something like this:
apt: name="{{ item }}" ...
with_items: your_package_list
and call the playbook with
ansible-playbook -e 'your_package_list=[foo,bar,xyz]'
Untested!
Johannes
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/572C5CB6.2090006%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
