From 43e211e0bbc77fd0b2cd7accf51a3047f08cdead Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 22 Jun 2021 17:09:09 +0200 Subject: [PATCH] =?UTF-8?q?[gal=C3=A8ne]=20Deploy=20custom=20static=20file?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yohann D'ANELLO --- roles/galene/tasks/main.yml | 5 ++++- roles/galene/templates/systemd/system/galene.service.j2 | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/galene/tasks/main.yml b/roles/galene/tasks/main.yml index a22aa892..0cdf228f 100644 --- a/roles/galene/tasks/main.yml +++ b/roles/galene/tasks/main.yml @@ -58,7 +58,10 @@ owner: galene group: galene -## FIXME Deploy /var/www/galene-static +- name: Deploy custom static files + git: + repo: https://gitlab.adm.crans.org/nounous/galene-static.git + dest: /var/www/galene-static - name: Install systemd unit template: diff --git a/roles/galene/templates/systemd/system/galene.service.j2 b/roles/galene/templates/systemd/system/galene.service.j2 index 14518216..1a8897c8 100644 --- a/roles/galene/templates/systemd/system/galene.service.j2 +++ b/roles/galene/templates/systemd/system/galene.service.j2 @@ -9,7 +9,7 @@ Type=simple WorkingDirectory=/var/local/galene User=galene Group=galene -ExecStart=/var/local/galene/galene --insecure --static /var/www/galene-static/ +ExecStart=/var/local/galene/galene --insecure --static /var/www/galene-static/static/ LimitNOFILE=65536 [Install]