Update to 2020-08-19 16:00

master
Daniel Berteaud 4 years ago
parent bcfa2b0b27
commit 1629563036
  1. 24
      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

Loading…
Cancel
Save