mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-30 04:13:01 +00:00
466cbd9878
Font Awesome 4 adds 106kB of dependencies on each page and require to query multiple assets. It also sometimes causes icons to appear after page loading. Font Awesome 4 is deprecated and replaced by version 5 which is not packaged in every GNU/Linux distributions. This commit replaces icons with inline SVG which does not require external assets, does not require an additionnal dependency and is widely supported by modern browsers. It makes the page loading faster and enables us to no longer require fonts-font-awesome Debian package.
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
---
|
|
- name: Add buster-backports to apt sources
|
|
apt_repository:
|
|
repo: deb http://{{ mirror }}/debian buster-backports main
|
|
state: present
|
|
when: ansible_facts['distribution'] == "Debian"
|
|
|
|
- name: Install note_kfet APT dependencies
|
|
apt:
|
|
update_cache: true
|
|
default_release: "{{ 'buster-backports' if ansible_facts['distribution'] == 'Debian' }}"
|
|
install_recommends: false
|
|
name:
|
|
# Common tools
|
|
- gettext
|
|
- git
|
|
- ipython3
|
|
|
|
# Front-end dependencies
|
|
- libjs-bootstrap4
|
|
|
|
# Python dependencies
|
|
- python3-babel
|
|
- python3-bs4
|
|
- python3-django
|
|
- python3-django-crispy-forms
|
|
- python3-django-extensions
|
|
- python3-django-filters
|
|
- python3-django-oauth-toolkit
|
|
- python3-django-polymorphic
|
|
- python3-djangorestframework
|
|
- python3-lockfile
|
|
- python3-memcache
|
|
- python3-phonenumbers
|
|
- python3-pil
|
|
- python3-pip
|
|
- python3-psycopg2
|
|
- python3-setuptools
|
|
- python3-venv
|
|
|
|
# LaTeX (PDF generation)
|
|
- texlive-xetex
|
|
|
|
# Cache server
|
|
- memcached
|
|
|
|
# WSGI server
|
|
- uwsgi
|
|
- uwsgi-plugin-python3
|
|
register: pkg_result
|
|
retries: 3
|
|
until: pkg_result is succeeded
|