Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

main.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ---
  2. - name: Update apt cache
  3. apt: update_cache=yes
  4. tags:
  5. - dependencies
  6. - name: Upgrade all safe packages
  7. apt: upgrade=safe
  8. tags:
  9. - dependencies
  10. - name: Install necessities and nice-to-haves
  11. apt: pkg={{ item }} state=installed
  12. with_items:
  13. - apache2
  14. - apt-transport-https
  15. - apticron
  16. - build-essential
  17. - debian-goodies
  18. - git
  19. - htop
  20. - iftop
  21. - iotop
  22. - molly-guard
  23. - mosh
  24. - python3-software-properties
  25. - ruby
  26. - screen
  27. - sudo
  28. - unattended-upgrades
  29. - vim
  30. - zsh
  31. tags:
  32. - dependencies
  33. - name: timezone - configure /etc/timezone
  34. copy:
  35. content: "{{ common_timezone | regex_replace('$', '\n') }}"
  36. dest: /etc/timezone
  37. owner: root
  38. group: root
  39. mode: 0644
  40. register: common_timezone_config
  41. - name: timezone - Set localtime to UTC
  42. file: src=/usr/share/zoneinfo/Etc/UTC dest=/etc/localtime
  43. when: common_timezone_config.changed
  44. - name: timezone - reconfigure tzdata
  45. command: dpkg-reconfigure --frontend noninteractive tzdata
  46. when: common_timezone_config.changed
  47. - name: Apticron email configuration
  48. template: src=apticron.conf.j2 dest=/etc/apticron/apticron.conf
  49. - name: Create decrypted directory (even if encfs isn't used)
  50. file: state=directory path=/decrypted
  51. - name: Set decrypted directory permissions
  52. file: state=directory path=/decrypted group=mail mode=0775
  53. - name: Ensure locale en_US.UTF-8 locale is present
  54. locale_gen:
  55. name: en_US.UTF-8
  56. state: present
  57. - include: encfs.yml tags=encfs
  58. - include: users.yml tags=users
  59. - include: apache.yml tags=apache
  60. - include: ssl.yml tags=ssl
  61. - include: letsencrypt.yml tags=letsencrypt
  62. - include: ufw.yml tags=ufw
  63. - include: security.yml tags=security
  64. - include: ntp.yml tags=ntp
  65. - include: google_auth.yml tags=google_auth
  66. - include: postgres.yml