2
0

tulip.yml 970 B

12345678910111213141516171819202122232425262728293031323334353637
  1. - name: auto-loader optimization for tulip
  2. ansible.builtin.command:
  3. argv:
  4. - /usr/bin/composer
  5. - update
  6. - --optimize-autoloader
  7. - --no-dev
  8. chdir: "{{ app_deploy_target }}/dashboard-v4/rpc/tulip/tulip"
  9. - name: upload tulip db/.env
  10. template:
  11. src: v2/tulip/db/env.j2
  12. dest: "{{ app_deploy_target }}/dashboard-v4/rpc/tulip/tulip/db/.env"
  13. mode: "0644"
  14. - name: upload tulip config.php
  15. template:
  16. src: v2/tulip/config.php.j2
  17. dest: "{{ app_deploy_target }}/dashboard-v4/rpc/tulip/tulip/config.php"
  18. mode: "0644"
  19. - name: Setup tmp folder
  20. become: true
  21. ansible.builtin.file:
  22. path: "{{ app_deploy_root }}/dashboard-v4/rpc/tulip/tulip/tmp"
  23. state: directory
  24. owner: "www-data"
  25. group: "www-data"
  26. - name: Upload tulip rpc service
  27. become: true
  28. template:
  29. src: v2/tulip/service.conf.j2
  30. dest: /usr/lib/systemd/system/tulip.{{ app_domain }}.service
  31. owner: root
  32. group: root
  33. mode: "0644"