diff --git a/roles/lemonldap_ng/files/logos/scandm.png b/roles/lemonldap_ng/files/logos/scandm.png deleted file mode 100644 index 7ee932e..0000000 Binary files a/roles/lemonldap_ng/files/logos/scandm.png and /dev/null differ diff --git a/roles/lemonldap_ng/files/logos/scandm_appliance.png b/roles/lemonldap_ng/files/logos/scandm_appliance.png deleted file mode 100644 index 9e18497..0000000 Binary files a/roles/lemonldap_ng/files/logos/scandm_appliance.png and /dev/null differ diff --git a/roles/lemonldap_ng/files/logos/scandm_dev.png b/roles/lemonldap_ng/files/logos/scandm_dev.png deleted file mode 100644 index 067a130..0000000 Binary files a/roles/lemonldap_ng/files/logos/scandm_dev.png and /dev/null differ diff --git a/roles/lemonldap_ng/files/logos/scandm_prd.png b/roles/lemonldap_ng/files/logos/scandm_prd.png deleted file mode 100644 index c3a1147..0000000 Binary files a/roles/lemonldap_ng/files/logos/scandm_prd.png and /dev/null differ diff --git a/roles/lemonldap_ng/files/logos/scandm_qal.png b/roles/lemonldap_ng/files/logos/scandm_qal.png deleted file mode 100644 index 9e2dec4..0000000 Binary files a/roles/lemonldap_ng/files/logos/scandm_qal.png and /dev/null differ diff --git a/roles/lemonldap_ng/files/logos/scandm_stg.png b/roles/lemonldap_ng/files/logos/scandm_stg.png deleted file mode 100644 index 0762c00..0000000 Binary files a/roles/lemonldap_ng/files/logos/scandm_stg.png and /dev/null differ diff --git a/roles/lemonldap_ng/tasks/main.yml b/roles/lemonldap_ng/tasks/main.yml index 4d9d778..5cc3eb8 100644 --- a/roles/lemonldap_ng/tasks/main.yml +++ b/roles/lemonldap_ng/tasks/main.yml @@ -63,7 +63,19 @@ file: path=/usr/share/lemonldap-ng/portal-skins/ state=absent tags: web -- name: Check if there are custom app logo +- name: Check if there are custom app logos + local_action: stat path=config/{{ inventory_hostname }}/lemonldap_ng/apps + register: llng_custom_apps + vars: + ansible_become: False + tags: web + +- name: Copy custom app logos + synchronize: src=config/{{ inventory_hostname }}/lemonldap_ng/apps/ dest=/usr/share/lemonldap-ng/portal/htdocs/static/common/apps/ + when: llng_custom_apps.stat.exists and llng_custom_apps.stat.isdir + tags: web + +- name: Check if there are custom logos local_action: stat path=config/{{ inventory_hostname }}/lemonldap_ng/logos register: llng_custom_logo vars: @@ -71,8 +83,8 @@ tags: web - name: Copy custom logos - synchronize: 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 + synchronize: src=config/{{ inventory_hostname }}/lemonldap_ng/logos/ dest=/usr/share/lemonldap-ng/portal/htdocs/static/common/logos/ + when: llng_custom_logo.stat.exists and llng_custom_logo.stat.isdir tags: web - name: Check if there're a custom backgrounds @@ -87,6 +99,18 @@ when: llng_custom_background.stat.exists and llng_custom_background.stat.isdir tags: web +- name: Check if there're a custom CSS + local_action: stat path=config/{{ inventory_hostname }}/lemonldap_ng/css + register: llng_custom_css + vars: + ansible_become: False + tags: web + +- name: Copy custom CSS + synchronize: src=config/{{ inventory_hostname }}/lemonldap_ng/css/ dest=/usr/share/lemonldap-ng/portal/htdocs/static/bootstrap/css/ + when: llng_custom_css.stat.exists and llng_custom_css.stat.isdir + tags: web + - name: Create htpasswd file for API endpoints htpasswd: path: /etc/lemonldap-ng/api.htpasswd