Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ---
  2. # Defines tasks applicable across all machines in the infrastructure.
  3. - name: Update apt cache
  4. apt: update_cache=yes
  5. - name: Upgrade all safe packages
  6. apt: upgrade=safe
  7. - name: Install necessities and nice-to-haves
  8. apt: pkg=$item state=installed
  9. with_items:
  10. - sudo
  11. - vim
  12. - htop
  13. - iftop
  14. - iotop
  15. - mosh
  16. - zsh
  17. - git
  18. - ruby1.9.3
  19. - screen
  20. - apache2
  21. - build-essential
  22. - apticron
  23. - update-notifier-common
  24. - debian-goodies
  25. - name: Install ntp
  26. apt: pkg=ntp state=installed
  27. - name: Configure ntp
  28. template: src=ntp.conf.j2 dest=/etc/ntp.conf
  29. notify:
  30. - restart ntp
  31. - name: Apticron email configuration
  32. template: src=apticron.conf.j2 dest=/etc/apticron/apticron.conf
  33. - name: Ensure ntpd is running and enabled
  34. service: name=ntp state=started enabled=yes
  35. - name: Disable default Apache site
  36. command: a2dissite default removes=/etc/apache2/sites-enabled/default
  37. notify: restart apache
  38. - include: encfs.yml tags=encfs
  39. - include: users.yml tags=users
  40. - include: ssl.yml tags=ssl
  41. - include: ferm.yml tags=ferm
  42. - include: security.yml tags=security