| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- - name: Creates directory
- become: true
- file:
- path: "/var/www/{{ inventory_hostname }}"
- state: directory
- owner: "{{ ansible_user }}"
- - name: Git checkout source code
- ansible.builtin.git:
- repo: 'https://github.com/iapt-platform/mint.git'
- dest: "{{ app_www_deploy_target }}"
- version: laravel
- - name: Install v2 php dependencies
- ansible.builtin.shell: composer install
- args:
- chdir: "{{ app_www_deploy_target }}"
- - name: Install v2 nodejs dependencies
- ansible.builtin.shell: npm install
- args:
- chdir: "{{ app_www_deploy_target }}"
- # TODO will remove in future
- - name: Install v1 php dependencies
- ansible.builtin.shell: composer install
- args:
- chdir: "{{ app_www_deploy_target }}/public"
- # TODO will remove in future
- - name: Install v1 nodejs dependencies
- ansible.builtin.shell: npm install
- args:
- chdir: "{{ app_www_deploy_target }}/public"
- - name: .env(v2)
- bacame: true
- ansible.builtin.template:
- src: env-v2.j2
- dest: "{{ app_www_deploy_target }}/.env"
- owner: www-data
- group: www-data
- mode: '0400'
- # TODO will remove in future
- - name: config.php(v1)
- bacame: true
- ansible.builtin.template:
- src: config-v1.php.j2
- dest: "{{ app_www_deploy_target }}/public/app/config.php"
- owner: www-data
- group: www-data
- mode: '0400'
- # TODO will remove in future
- - name: config.js(v1)
- bacame: true
- ansible.builtin.template:
- src: config-v1.js.j2
- dest: "{{ app_www_deploy_target }}/public/app/config.js"
- owner: www-data
- group: www-data
- mode: '0400'
|