fix: add gnupg and software-properties-common for PPA support

This commit is contained in:
Sebastian Palencsar
2026-05-06 13:19:55 +02:00
parent 619205e0a8
commit feb6a2c962
4 changed files with 20 additions and 9 deletions

View File

@@ -14,12 +14,15 @@ RUN mkdir -p /var/run/sshd /var/log/supervisor \
&& echo 'ansible ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Install base system packages in a single layer
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
# Core system
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
# Core system
ca-certificates \
gnupg \
lsb-release \
apt-transport-https \
software-properties-common \
# SSH and system control
openssh-server \
sudo \

View File

@@ -88,10 +88,16 @@
cache_valid_time: 3600
tags: packages
- name: Add PHP PPA for Ubuntu 24.04+ (needed for PHP 8.4)
- name: Install gnupg for PPA
package:
name: gnupg
state: present
tags: packages
- name: Add PHP PPA for Ubuntu (needed for PHP 8.4)
apt_repository:
repo: ppa:ondrej/php
when: ansible_distribution == "Ubuntu" and ansible_distribution_version is version("24", ">=")
when: ansible_distribution == "Ubuntu"
tags: packages
- name: Install all required packages

View File

@@ -91,16 +91,16 @@
cache_valid_time: 3600
tags: packages
- name: Install gnupg for PPA (required for apt-add-repository)
package:
name: gnupg
state: present
tags: packages
- name: Add PHP PPA for Ubuntu (needed for PHP 8.4)
apt_repository:
repo: ppa:ondrej/php
when: ansible_os_family == "Debian" and ansible_distribution_version is version("24", ">=")
tags: packages
- name: Add PHP PPA for Ubuntu 24.04+ (needed for PHP 8.4)
apt_repository:
repo: ppa:ondrej/php
when: ansible_distribution == "Ubuntu" and ansible_distribution_version is version("24", ">=")
when: ansible_distribution == "Ubuntu"
tags: packages
- name: Install all required packages

View File

@@ -18,6 +18,8 @@ packages:
- unzip
- fail2ban
- ufw
- gnupg
- software-properties-common
# Service names
mysql_service: mariadb