From 16295630366538e083e720302956f9cef9b46caf Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 19 Aug 2020 16:00:07 +0200 Subject: [PATCH] Update to 2020-08-19 16:00 --- roles/lemonldap_ng/tasks/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/roles/lemonldap_ng/tasks/main.yml b/roles/lemonldap_ng/tasks/main.yml index aea75ba..0a4803c 100644 --- a/roles/lemonldap_ng/tasks/main.yml +++ b/roles/lemonldap_ng/tasks/main.yml @@ -70,6 +70,30 @@ file: path=/usr/share/lemonldap-ng/portal-skins/ state=absent tags: web +- name: Check if there are custom app logo + local_action: stat path=config/{{ inventory_hostname }}/lemonldap_ng/logos + register: llng_custom_logo + vars: + ansible_become: False + tags: web + +- name: Copy custom logos + copy: src=config/{{ inventory_hostname }}/lemonldap_ng/logos/ dest=/usr/share/lemonldap-ng/portal/htdocs/static/common/apps/ + when: llng_custom_logo.stat.exists and llng_custom_logo.stat.exists.isdir + tags: web + +- name: Check if there're a custom backgrounds + local_action: stat path=config/{{ inventory_hostname }}/lemonldap_ng/backgrounds + register: llng_custom_background + vars: + ansible_become: False + tags: web + +- name: Copy custom backgrounds + copy: src=config/{{ inventory_hostname }}/lemonldap_ng/backgrounds/ dest=/usr/share/lemonldap-ng/portal/htdocs/static/common/backgrounds/ + when: llng_custom_background.stat.exists and llng_custom_background.stat.isdir + tags: web + - name: Create htpasswd file for API endpoints htpasswd: path: /etc/lemonldap-ng/api.htpasswd