[helloworld] Fix Django pin

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2022-03-21 17:36:32 +01:00 committed by ynerant
parent 00fe348e92
commit dc021ba420
2 changed files with 18 additions and 2 deletions

View File

@ -1,8 +1,13 @@
--- ---
- name: Pin Django from Debian bullseye-backports - name: Pin Django from Debian bullseye-backports
template: template:
src: "apt/sources.list.d/bullseye-backports.list.j2" src: "{{ item.src }}"
dest: "{{ item.dest }}"
loop:
- src: "apt/sources.list.d/bullseye-backports.list.j2"
dest: "/etc/apt/sources.list.d/bullseye-backports.list" dest: "/etc/apt/sources.list.d/bullseye-backports.list"
- src: "apt/preferences.d/django-backports.j2"
dest: "/etc/apt/preferences.d/django-backports"
- name: Install printer dependencies - name: Install printer dependencies
apt: apt:
@ -31,6 +36,10 @@
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
- name: Install non-packaged dependencies
pip:
name: crispy-bootstrap5==0.4
- name: Create django-printer configuration directory - name: Create django-printer configuration directory
file: file:
path: "/etc/django-printer" path: "/etc/django-printer"

View File

@ -0,0 +1,7 @@
{{ ansible_header | comment }}
Package: python3-django
Pin: release n=bullseye-backports
Pin-Priority: 900