forked from cisti/infra
start lufi role
This commit is contained in:
parent
d479f747f0
commit
401a96010b
1 changed files with 36 additions and 0 deletions
36
roles/lufi/tasks/main.yml
Normal file
36
roles/lufi/tasks/main.yml
Normal file
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue