| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- - name: Create www folder
- become: true
- ansible.builtin.file:
- path: "{{ app_deploy_target | dirname }}"
- state: directory
- owner: "{{ ansible_user }}"
- mode: "0755"
- # ---------------------------------------------------------
- - name: Download source code
- ansible.builtin.unarchive:
- src: https://github.com/iapt-platform/mint/archive/{{ mint_version }}.zip
- dest: "{{ app_deploy_target | dirname }}"
- remote_src: true
- creates: "{{ app_deploy_target }}"
- - name: Setup clove resources
- ansible.builtin.import_tasks: clove.yml
- # ---------------------------------------------------------
- # - name: Clone source codes directly
- # ansible.builtin.git:
- # repo: "https://github.com/iapt-platform/mint.git"
- # dest: "{{ app_deploy_target }}"
- # version: "{{ mint_version }}"
- # ---------------------------------------------------------
- # - name: Clone source codes to repo
- # ansible.builtin.git:
- # repo: "https://github.com/iapt-platform/mint.git"
- # dest: "{{ app_deploy_target | dirname }}/repo"
- # update: true
- # version: "development"
- # - name: Clone to from local repo
- # ansible.builtin.git:
- # repo: "{{ app_deploy_target | dirname }}/repo"
- # dest: "{{ app_deploy_target }}"
- # version: "{{ mint_version }}"
- # # depth: 1
- # # single_branch: true
- # ---------------------------------------------------------
- - name: Upload dashboard-v4 dist
- ansible.posix.synchronize:
- src: "{{ playbook_dir }}/tmp/mint/dashboard-v4/dashboard/dist-{{ mint_version }}/"
- dest: "{{ app_deploy_target }}/dashboard-v4/dashboard/dist/"
- - name: Upload docker shell script
- ansible.builtin.template:
- src: containers/api-v8.sh.j2
- dest: "{{ app_deploy_target }}/scripts/api-v8.sh"
- mode: "0555"
- - name: Setup laravel
- ansible.builtin.import_tasks: laravel.yml
- - name: Setup ai-translate
- ansible.builtin.import_tasks: ai-translate.yml
- - name: Setup openai-proxy
- ansible.builtin.import_tasks: openai-proxy.yml
- - name: Force systemd to reread configs
- become: true
- ansible.builtin.systemd:
- daemon_reload: true
- - name: Force systemd to reread configs(user)
- ansible.builtin.systemd:
- daemon_reload: true
- scope: user
- - name: Upload version.txt(api-v8)
- ansible.builtin.template:
- src: version.txt.j2
- dest: "{{ app_deploy_target }}/api-v8/public/version.txt"
- mode: "0555"
- - name: Upload version.txt(api-v12)
- ansible.builtin.template:
- src: version.txt.j2
- dest: "{{ app_deploy_target }}/api-v12/public/version.txt"
- mode: "0555"
- - name: Upload version.txt(dashboard-v4)
- ansible.builtin.template:
- src: version.txt.j2
- dest: "{{ app_deploy_target }}/dashboard-v4/dashboard/dist/version.txt"
- mode: "0555"
|