|
@@ -0,0 +1,36 @@
|
|
|
+---
|
|
|
+- name: Install lufi deps
|
|
|
+ apt:
|
|
|
+ pkg:
|
|
|
+ git
|
|
|
+ build-essential
|
|
|
+ libssl-dev
|
|
|
+ libio-socket-ssl-perl
|
|
|
+ liblwp-protocol-https-perl
|
|
|
+ zlib1g-dev
|
|
|
+
|
|
|
+- name: Install Carton
|
|
|
+ cpanm: name=Carton
|
|
|
+
|
|
|
+- name: ensure lufi user is present
|
|
|
+ user:
|
|
|
+ name: "lufi"
|
|
|
+ home: "/srv/lufi"
|
|
|
+ shell: "/bin/bash"
|
|
|
+ state: present
|
|
|
+
|
|
|
+
|
|
|
+- name: Clone lufi repo
|
|
|
+ git:
|
|
|
+ repo: git clone https://framagit.org/fiat-tux/hat-softwares/lufi.git
|
|
|
+ dest: /srv/lufi/lufi
|
|
|
+ become: true
|
|
|
+ become_user: lufi
|
|
|
+
|
|
|
+- name: Install lufi
|
|
|
+ shell: carton install --deployment --without=test --without=postgresql --without=mysql
|
|
|
+ args:
|
|
|
+ chdir: /srv/lufi/lufi
|
|
|
+
|
|
|
+
|
|
|
+
|