2023-08-14 21:37:34 +00:00
|
|
|
---
|
|
|
|
- name: Ensure requirements using yarn
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: yarn
|
|
|
|
chdir: "{{ snort_repository_path }}"
|
|
|
|
when: snort_devmode or git_repository.changed
|
|
|
|
|
|
|
|
- name: Build the frontend assets using yarn build
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: yarn build
|
|
|
|
chdir: "{{ snort_repository_path }}"
|
|
|
|
when: snort_devmode or git_repository.changed
|
|
|
|
|
|
|
|
- name: Copy frontend assets for the web proxy to serve directly
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "{{ snort_repository_path }}/{{ item }}"
|
|
|
|
dest: "{{ snort_root_path }}"
|
|
|
|
remote_src: yes
|
|
|
|
become: yes
|
|
|
|
loop:
|
|
|
|
- packages/app/public/
|
2023-08-14 22:30:07 +00:00
|
|
|
- packages/app/build/
|
|
|
|
changed_when: false
|
2023-08-14 21:37:34 +00:00
|
|
|
|