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



ansible-playbook    /root/aplays/core.pb -u teddy -k

#######################################
- hosts: teddy
  sudo: true
  tasks:
   - name: install sysstat
     apt: name=sysstat update_cache=yes state=latest

   - name: install htop
     apt: name=htop update_cache=yes state=latest

   - name: install curl
     apt: name=curl update_cache=yes state=latest

   - name: install bzip2
     apt: name=bzip2 update_cache=yes state=latest

   - name: install lft
     apt: name=lft update_cache=yes state=latest

   - name: install traceroute
     apt: name=traceroute update_cache=yes state=latest

   - name: install ncdu
     apt: name=ncdu update_cache=yes state=latest

   - name: install midnight-commander mc
     apt: name=mc update_cache=yes state=latest

   - name: install screen
     apt: name=screen update_cache=yes state=latest

   - name: install wget
     apt: name=wget update_cache=yes state=latest

-- 
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/04a0efe5-e277-4974-9197-b4fb09b7cc0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to