On 28. juni 2016 19:51, teddy mills wrote:
> This playbook works, but I dont think this is the proper way to install
> multiple packages.
> Can someone correct this and show how it should be done ? TIA
If it work and is understandable it's OK in my book, but it could be
more condense.
- name: install apt packages
apt: name={{ item }} update_cache=yes state=latest
with_items:
- sysstat
- htop
- curl
- bzip
I think you see the pattern, just continue to add the rest of the packages.
--
Kai Stian Olstad