From 0a244894eb04e8b7cf161efb20b310669be39bcd Mon Sep 17 00:00:00 2001 From: Eric Morino Date: Wed, 26 Jan 2022 11:06:36 +0100 Subject: [PATCH] Add fix repository in source.list for bullseye --- lxc-php/tasks/php74.yml | 6 ++++++ lxc-php/tasks/php80.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lxc-php/tasks/php74.yml b/lxc-php/tasks/php74.yml index a3a7eb44..eaae77fd 100644 --- a/lxc-php/tasks/php74.yml +++ b/lxc-php/tasks/php74.yml @@ -5,6 +5,12 @@ name: "{{ lxc_php_version }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y php-fpm php-cli php-gd php-intl php-imap php-ldap php-mysql php-pgsql php-sqlite3 php-curl php-zip php-mbstring php-zip composer libphp-phpmailer" +- name: "{{ lxc_php_version }} - fix bullseye repository" + replace: + dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/apt/sources.list" + regexp: 'bullseye/updates' + replace: 'bullseye-security' + - name: "{{ lxc_php_version }} - Copy evolinux PHP configuration" template: src: z-evolinux-defaults.ini.j2 diff --git a/lxc-php/tasks/php80.yml b/lxc-php/tasks/php80.yml index 33f6d409..4f725f0b 100644 --- a/lxc-php/tasks/php80.yml +++ b/lxc-php/tasks/php80.yml @@ -5,6 +5,12 @@ name: "{{ lxc_php_version }}" container_command: "DEBIAN_FRONTEND=noninteractive apt install -y wget apt-transport-https gnupg" +- name: "{{ lxc_php_version }} - fix bullseye repository" + replace: + dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/apt/sources.list" + regexp: 'bullseye/updates' + replace: 'bullseye-security' + - name: "{{ lxc_php_version }} - Add sury repo" lineinfile: dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/apt/sources.list.d/sury.list"