1
0
Fork 0
forked from cisti/infra

start lufi role

This commit is contained in:
les 2020-10-02 21:28:53 +02:00
parent d479f747f0
commit 401a96010b

36
roles/lufi/tasks/main.yml Normal file
View 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