From 401a96010be13d586adc6e665b7e922b8f1c947e Mon Sep 17 00:00:00 2001 From: les Date: Fri, 2 Oct 2020 21:28:53 +0200 Subject: [PATCH] start lufi role --- roles/lufi/tasks/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 roles/lufi/tasks/main.yml diff --git a/roles/lufi/tasks/main.yml b/roles/lufi/tasks/main.yml new file mode 100644 index 0000000..75779dd --- /dev/null +++ b/roles/lufi/tasks/main.yml @@ -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 + + +