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