mint.yml 902 B

123456789101112131415161718192021222324252627
  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_DOCUMENTS_SERVER: "{{ app_documents_server }}"
  20. REACT_APP_RPC_SERVER: "{{ app_rpc_server }}"
  21. REACT_APP_ASSETS_SERVER: "{{ app_assets_server }}"
  22. REACT_APP_API_SERVER: "{{ app_api_server }}"
  23. REACT_APP_TOKEN_KEY: "token.20230919"
  24. - hosts: www
  25. roles:
  26. - mint-v2