Playbooks to a new Lilik
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.

41 lines
1.0 KiB

  1. - name: add jessie-backports repository
  2. apt_repository: repo='deb http://ftp.debian.org/debian jessie-backports main' state=present
  3. - name: install roundcube packages
  4. apt:
  5. name: "{{ item }}"
  6. state: present
  7. update_cache: yes
  8. cache_valid_time: 3600
  9. with_items:
  10. - roundcube-sqlite3
  11. - roundcube
  12. - roundcube-plugins
  13. notify:
  14. - restart nginx
  15. - name: copy lilik-150x54.png
  16. copy:
  17. src: lilik-150x54.png
  18. dest: /usr/share/roundcube/skins/classic/images/
  19. - name: copy my-roundcube.php
  20. template:
  21. src: "my-roundcube.php.j2"
  22. dest: "/etc/roundcube/my-roundcube.php"
  23. mode: 0640
  24. owner: root
  25. group: www-data
  26. - name: copy lilik_ca_w1.pub
  27. copy:
  28. src: "lilik_ca_w1.pub"
  29. dest: "/usr/local/share/ca-certificates/lilik_ca_w1.pub"
  30. mode: 0444
  31. notify: update-ca-certificates
  32. - name: include my-roundcube.php
  33. lineinfile:
  34. dest: /etc/roundcube/config.inc.php
  35. insertafter: '\?>'
  36. line: include_once("/etc/roundcube/my-roundcube.php");