|
@@ -1,7 +1,7 @@
|
|
|
---
|
|
|
- name: Dependencies installed
|
|
|
community.general.pkgng:
|
|
|
- name: git,go,blas,dlib-cpp,lapacke,libjpeg-turbo,npm-node10,darktable,ffmpeg
|
|
|
+ name: git,go,openblas,cblas,dlib-cpp,lapacke,libjpeg-turbo,npm-node14,darktable,ffmpeg,p5-Image-ExifTool,pkgconf,libheif,bash
|
|
|
state: latest
|
|
|
|
|
|
- name: Source folder exists
|
|
@@ -35,6 +35,9 @@
|
|
|
- name: Library for dlib linked
|
|
|
file: src=/usr/local/lib/libdlib.so dest=/usr/lib/libdlib.so state=link
|
|
|
|
|
|
+- name: Libraries for cblas linked
|
|
|
+ file: src=/usr/local/include/cblas.h dest=/usr/include/cblas.h state=link
|
|
|
+
|
|
|
- name: Link lapack libraries
|
|
|
shell: "ln -s /usr/local/lib/liblapack* /usr/lib/"
|
|
|
ignore_errors: true
|
|
@@ -43,8 +46,8 @@
|
|
|
shell: "ln -s /usr/local/lib/libjpeg* /usr/lib/"
|
|
|
ignore_errors: true
|
|
|
|
|
|
-- name: Link blas libraries
|
|
|
- shell: "ln -s /usr/local/lib/libblas* /usr/lib/"
|
|
|
+- name: Link cblas libraries
|
|
|
+ shell: "ln -s /usr/local/lib/libcblas* /usr/lib/"
|
|
|
ignore_errors: true
|
|
|
|
|
|
- name: Photoview source @ master
|
|
@@ -70,7 +73,7 @@
|
|
|
|
|
|
- name: Photoview UI installed
|
|
|
shell:
|
|
|
- cmd: npm install
|
|
|
+ cmd: npm install && npm run build
|
|
|
chdir: /usr/local/src/photoview/ui
|
|
|
|
|
|
- name: Photoview API built
|
|
@@ -78,6 +81,15 @@
|
|
|
cmd: go build .
|
|
|
chdir: /usr/local/src/photoview/api
|
|
|
|
|
|
+- name: Nginx location file installed
|
|
|
+ ansible.builtin.copy:
|
|
|
+ src: nginx.conf
|
|
|
+ dest: /usr/local/etc/nginx/locations/photoview.conf
|
|
|
+ notify: Nginx restarted
|
|
|
+
|
|
|
+# TODO We have to comment out:
|
|
|
+# vi ~/go/pkg/mod/github.com/strukturag/libheif@v1.12.0/go/heif/heif.go
|
|
|
+# line 269
|
|
|
- name: Photoview supervisor file installed
|
|
|
template:
|
|
|
src: supervisor.conf.j2
|