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 && echo 'ansible ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Install base system packages in a single layer # 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 \ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
# Core system # Core system
ca-certificates \ ca-certificates \
gnupg \ gnupg \
lsb-release \ lsb-release \
apt-transport-https \ apt-transport-https \
software-properties-common \
# SSH and system control # SSH and system control
openssh-server \ openssh-server \
sudo \ sudo \

View File

@@ -88,10 +88,16 @@
cache_valid_time: 3600 cache_valid_time: 3600
tags: packages 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: apt_repository:
repo: ppa:ondrej/php repo: ppa:ondrej/php
when: ansible_distribution == "Ubuntu" and ansible_distribution_version is version("24", ">=") when: ansible_distribution == "Ubuntu"
tags: packages tags: packages
- name: Install all required packages - name: Install all required packages

View File

@@ -91,16 +91,16 @@
cache_valid_time: 3600 cache_valid_time: 3600
tags: packages 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) - name: Add PHP PPA for Ubuntu (needed for PHP 8.4)
apt_repository: apt_repository:
repo: ppa:ondrej/php repo: ppa:ondrej/php
when: ansible_os_family == "Debian" and ansible_distribution_version is version("24", ">=") when: ansible_distribution == "Ubuntu"
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", ">=")
tags: packages tags: packages
- name: Install all required packages - name: Install all required packages

View File

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