Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

80 wiersze
1.8KB

  1. ---
  2. - name: install openproject dependencies
  3. apt:
  4. name: '{{item}}'
  5. with_items:
  6. - memcached
  7. - default-libmysqlclient-dev
  8. - zlib1g-dev
  9. - build-essential
  10. - libssl-dev
  11. - libreadline-dev
  12. - libyaml-dev
  13. - libgdbm-dev
  14. - libncurses5-dev
  15. - automake
  16. - imagemagick
  17. - libmagickcore-dev
  18. - libmagickwand-dev
  19. - libtool
  20. - bison
  21. - libffi-dev
  22. - git
  23. - curl
  24. - libxml2
  25. - libxml2-dev
  26. - libxslt1-dev
  27. - name: clone openproject
  28. git:
  29. repo: https://github.com/opf/openproject-ce.git
  30. dest: '{{openproject_path}}/openproject'
  31. version: stable/7
  32. force: yes
  33. async: 3600
  34. poll: 1
  35. register: cloned_openproject
  36. notify: restart openproject
  37. # do not run this as a handler but as a task here because we will need this before
  38. # end of playbook execution.
  39. - name: change ownership of openproject
  40. file:
  41. path: '{{openproject_path}}/openproject'
  42. owner: '{{openproject_user}}'
  43. group: '{{openproject_group}}'
  44. recurse: yes
  45. - name: install bundler
  46. gem:
  47. name: bundler
  48. state: present
  49. executable: ~{{openproject_user}}/.rbenv/shims/gem
  50. user_install: no
  51. become: yes
  52. become_user: '{{openproject_user}}'
  53. become_method: su
  54. - name: install openproject ruby dependencies
  55. bundler:
  56. chdir: '{{openproject_path}}/openproject'
  57. deployment_mode: yes
  58. extra_args: '--without postgres sqlite rmagick development test therubyracer'
  59. executable: ~{{openproject_user}}/.rbenv/shims/bundler
  60. become: yes
  61. become_user: '{{openproject_user}}'
  62. become_method: su
  63. async: 3600
  64. poll: 1
  65. - name: install openproject node dependencies
  66. npm:
  67. path: '{{openproject_path}}/openproject'
  68. executable: ~{{openproject_user}}/.nodenv/shims/npm
  69. become: yes
  70. become_user: '{{openproject_user}}'
  71. become_method: su
  72. async: 3600
  73. poll: 1