-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdataverse-gui.yml
More file actions
48 lines (39 loc) · 1.45 KB
/
dataverse-gui.yml
File metadata and controls
48 lines (39 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
# dataverse/tasks/dataverse-gui.yml
# install gui modifications (branding and favicons), if defined
- name: Calculate destination directories
set_fact:
gui_file_path: '{{ payara_dir }}/glassfish/domains/{{ dataverse.payara.domain }}/applications/dataverse'
favicon_file_path: '{{ payara_dir }}/glassfish/domains/{{ dataverse.payara.domain }}/applications/dataverse/resources/images/fav/'
- name: Applying GUI design
debug:
msg: '##### Applying GUI design #####'
- name: Copy favicons
copy:
src: '{{ item }}'
dest: '{{ favicon_file_path }}'
mode: '0644'
owner: '{{ dataverse.payara.user }}'
group: '{{ dataverse.payara.group }}'
with_fileglob: '{{ dataverse.branding.favicons_directory }}/*.ico'
- name: Copy branding files
copy:
src: '{{ dataverse.branding.directory }}'
dest: '{{ gui_file_path }}'
owner: '{{ dataverse.payara.user }}'
group: '{{ dataverse.payara.group }}'
mode: '0644'
- name: Update branding file settings on server
uri:
url: http://localhost:8080/api/admin/settings/:{{ item.setting }}
method: PUT
body: '{{ gui_file_path }}/branding/{{ item.file }}'
status_code: 200
with_items: '{{ dataverse.branding.fileSettings }}'
- name: Update other branding settings on server
uri:
url: http://localhost:8080/api/admin/settings/:{{ item.setting }}
method: PUT
body: "{{ item.value }}"
status_code: 200
with_items: '{{ dataverse.branding.otherSettings }}'