mint.yml 1.0 KB

123456789101112131415161718192021222324252627282930
  1. - name: "local compile"
  2. hosts: localhost
  3. connection: local
  4. tasks:
  5. - name: "install dashboard dependencies"
  6. ansible.builtin.shell:
  7. cmd: yarn install
  8. chdir: "{{ playbook_dir }}/../dashboard"
  9. - name: "build dashboard"
  10. ansible.builtin.shell:
  11. cmd: yarn build
  12. chdir: "{{ playbook_dir }}/../dashboard"
  13. environment:
  14. NODE_OPTIONS: "--max_old_space_size=4096"
  15. PUBLIC_URL: /pcd
  16. REACT_APP_DEFAULT_LOCALE: "zh-Hans"
  17. REACT_APP_LANGUAGES: "en-US,zh-Hans,zh-Hant"
  18. REACT_APP_ENABLE_LOCAL_TOKEN: "true"
  19. REACT_APP_TOKEN_KEY: "token.20230919"
  20. REACT_APP_DOCUMENTS_SERVER: "{{ app_documents_server }}"
  21. REACT_APP_RPC_SERVER: "{{ app_rpc_server }}"
  22. REACT_APP_ASSETS_SERVER: "{{ app_assets_server }}"
  23. REACT_APP_API_SERVER: "{{ app_api_server }}"
  24. REACT_ICP_CODE: "{{ app_icp_code }}"
  25. REACT_APP_QUESTIONNAIRE_LINK: "{{ app_questionnaire_link }}"
  26. - hosts:
  27. - php_fpm
  28. roles:
  29. - mint-v2