Files @ f4772b5c7f3a
Branch filter:

Location: majic-ansible-roles/roles/wsgi_website/defaults/main.yml

branko
MAR-192: Fix incorrect prompt for wsgi_website virtual environments:

- Ensure that the virtualenv indicator string ends with a whitespace.
- The virtualenv prompt parameter behaves slightly different between
the versions of Debian 11 Bullseye and Debian 12 Bookworm - the
former being a bit more user-friendly.
- Recreate virtual environment if the prompt does not match-up.
---

additional_nginx_config: {}
packages: []
rewrites: []
static_locations: []
use_paste: false
virtualenv_packages: []
environment_variables: {}
website_mail_recipients: "root"
environment_indicator: null
proxy_headers: {}
wsgi_requirements:
  - gunicorn==21.2.0
  - packaging==23.2
wsgi_requirements_in:
  - gunicorn

# Internal parameters.
admin: "admin-{{ fqdn | replace('.', '_') }}"
user: "web-{{ fqdn | replace('.', '_') }}"
home: "/var/www/{{ fqdn }}"
python_interpreter: "/usr/bin/python3"
pip_check_requirements_upgrades_directory: "/etc/pip_check_requirements_upgrades"
virtualenv_prompt: "{% if ansible_distribution_release == 'bullseye' %}({{ fqdn }}) {% else %}{{ fqdn }}{% endif %}"