Update to 2022-03-23 17:00

This commit is contained in:
Daniel Berteaud 2022-03-23 17:00:07 +01:00
parent 7439bb4f17
commit c8e45494af
2 changed files with 24 additions and 0 deletions

View File

@ -4,3 +4,6 @@
service: name={{ item }} state=restarted
loop: "{{ oo_services }}"
- name: generate fonts
command: documentserver-generate-allfonts.sh true

View File

@ -19,6 +19,27 @@
command: documentserver-generate-allfonts.sh true
tags: oo
- name: Check if there are custom fonts
local_action: stat path=config/{{ inventory_hostname }}/onlyoffice_document_server/fonts/
register: oo_custom_fonts
vars:
ansible_become: False
tags: oo
- name: Copy custom fonts
block:
- synchronize:
src: config/{{ inventory_hostname }}/onlyoffice_document_server/fonts/
dest: /usr/share/fonts/
notify: generate fonts
- name: Fix permissions on fonts
file: path=/usr/share/fonts recurse=True owner=root group=root
when: oo_custom_fonts.stat.exists
tags: oo
- name: Fix permissions on onlyoffice web resources
file: path=/var/www/onlyoffice state=directory mode=755
tags: oo