packages.yml 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. - name: Ensure packages are installed
  3. apt: name={{ item }} state=latest install_recommends=no
  4. with_items:
  5. - curl
  6. - bash-completion
  7. - dbus
  8. - vim
  9. - htop
  10. - mtr-tiny
  11. - byobu
  12. - bind9-host
  13. - tmux
  14. - psmisc
  15. - ngrep
  16. - iperf3
  17. - aptitude
  18. - bwm-ng
  19. - rsync
  20. - git
  21. - initramfs-tools
  22. - locales
  23. - name: Ensure backported packages are installed
  24. apt: name={{ item }} state=latest default_release={{ ansible_distribution_release }}-backports install_recommends=no
  25. with_items:
  26. - linux-base
  27. - linux-image-amd64
  28. - openssl
  29. - libssl1.0.0
  30. - systemd
  31. - systemd-sysv
  32. - udev
  33. - libpam-systemd
  34. - libnss-myhostname
  35. - name: ensure all packages are up to date
  36. apt: upgrade=dist install_recommends=no dpkg_options='force-confold,force-confdef'
  37. - name: Ensure vim is default editor
  38. alternatives: name=editor path=/usr/bin/vim.basic
  39. - name: Set defaults for vim
  40. copy: src=vimrc dest=/etc/vim/vimrc.local