31 lines
784 B
YAML
31 lines
784 B
YAML
---
|
|
|
|
- name: '[INSTALL APP] - Get movim release'
|
|
file:
|
|
path: "{{ movim_release_dir_path }}"
|
|
state: directory
|
|
|
|
|
|
- name: "[INSTALL] - Download movim release"
|
|
unarchive:
|
|
src: "https://github.com/movim/movim/archive/refs/tags/v{{ movim_version }}.zip"
|
|
dest: "{{ movim_release_dir_path }}"
|
|
owner: '{{ movim_app_username }}'
|
|
group: '{{ movim_app_group }}'
|
|
remote_src: yes
|
|
|
|
- name: "[INSTALL] - Link to current release"
|
|
file:
|
|
src: "{{ movim_release_dir_path }}/movim-{{ movim_version }}/"
|
|
dest: "{{ movim_latest_path }}"
|
|
state: link
|
|
mode: 0750
|
|
|
|
- name: "[INSTALL] - Install / Update dependecies with Composer"
|
|
shell:
|
|
cmd: "composer install"
|
|
chdir: "{{ movim_latest_path }}"
|
|
become: yes
|
|
become_user: '{{ movim_app_username }}'
|
|
|