23 lines
574 B
YAML
23 lines
574 B
YAML
---
|
|
- name: "Install PHP dependencies"
|
|
community.general.composer:
|
|
command: install
|
|
working_dir: "{{ ansistrano_release_path.stdout }}"
|
|
|
|
- name: "Create npm home dir"
|
|
file:
|
|
path: "/var/www/.npm"
|
|
state: directory
|
|
owner: www-data
|
|
group: www-data
|
|
become_user: root
|
|
|
|
- name: "Install JS dependencies"
|
|
community.general.npm:
|
|
path: "{{ ansistrano_release_path.stdout }}"
|
|
|
|
- name: "Compile SCSS"
|
|
ansible.builtin.command:
|
|
cmd: "./node_modules/gulp/bin/gulp.js build"
|
|
chdir: "{{ ansistrano_release_path.stdout }}"
|
|
#Todo: creates: ""
|