On 06.05.16 10:56
deo...@miranetworks.net 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