Files
ansible-role-uwsgi/vars/debian.yml
Dmitriy Rabotyagov 89379301f6 Add support for Debian 13 (trixie)
uWSGI since version 2.0.25 [1] does support libpcre2. At the same time
Debian 13 has dropped old libpcre3 and the package is not available.

[1] https://github.com/unbit/uwsgi/issues/2486

Change-Id: I9649ec1bc0def15624739f23e6e494f95dccb4c6
Signed-off-by: Dmitriy Rabotyagov <noonedeadpunk@gmail.com>
2025-10-29 10:54:49 +01:00

51 lines
1.6 KiB
YAML

---
# Copyright 2021, BBC R&D
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
## APT Cache options
cache_timeout: 600
uwsgi_bin: "/usr/bin"
_uwsgi_distro_libpython:
buster: libpython3.7
bullseye: libpython3.9
bookworm: libpython3.11
trixie: libpython3.13
focal: libpython3.8
jammy: libpython3.10
noble: libpython3.12
uwsgi_distro_packages:
- "{{ _uwsgi_distro_libpython[ansible_facts['distribution_release'] | lower] }}"
- uwsgi
- uwsgi-plugin-python3
_uwsgi_package_names_condition: >-
{{
(
(ansible_facts['distribution'] | lower == 'debian' and ansible_facts['distribution_major_version'] is version('13', '<')) or
(ansible_facts['distribution'] | lower == 'ubuntu' and ansible_facts['distribution_major_version'] is version('24.04', '<')))
}}
uwsgi_build_distro_package_list:
- libssl-dev
- "{{ _uwsgi_package_names_condition | ternary('libpcre3-dev', 'libpcre2-dev') }}"
uwsgi_source_package_list:
- "{{ _uwsgi_package_names_condition | ternary('libssl3', 'libssl3t64') }}"
- "{{ _uwsgi_package_names_condition | ternary('libpcre3', 'libpcre2-8-0') }}"
_uwsgi_env: "REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt"