tulip.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 }}/mint/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 }}/mint/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 }}/mint/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 }}/mint/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/{{ inventory_hostname }}-tulip.service
  31. owner: root
  32. group: root
  33. mode: "0644"
  34. - name: Run tulip db migrate
  35. ansible.builtin.command:
  36. argv:
  37. - /usr/bin/dbmate
  38. - up
  39. chdir: "{{ app_deploy_target }}/mint/dashboard-v4/rpc/tulip/tulip/db"