From cb727a007d8f615754c160921a45faa4ec0a1e37 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Thu, 22 Dec 2022 11:40:00 -0500 Subject: [PATCH] Fix debian 10+ php 5.6 container creation The keyring for jessie has to be downgraded --- CHANGELOG.md | 1 + lxc/tasks/create-container.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3edf0dac..43a22287 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ The **patch** part changes is incremented if multiple releases happen the same m ### Fixed * evolinux-base: ensure dbus is started and enabled (not by default in the case of an offline netinst) +* lxc: fix problems during php 5.6 containers creation on debian 10+ by downgrading the jessie keyring ### Removed diff --git a/lxc/tasks/create-container.yml b/lxc/tasks/create-container.yml index ad4f35d6..493e5980 100644 --- a/lxc/tasks/create-container.yml +++ b/lxc/tasks/create-container.yml @@ -5,6 +5,13 @@ check_mode: no register: container_exists +- name: "Downgrade debian key-ring (Jessie container)" + apt: + deb: https://snapshot.debian.org/archive/debian/20190423T161317Z/pool/main/d/debian-archive-keyring/debian-archive-keyring_2019.1_all.deb + when: + - release == 'jessie' + - ansible_distribution_major_version is version('10', '>=') + - name: "Create container {{ name }}" lxc_container: name: "{{ name }}" -- 2.39.2