refactor: remove unnecessary PPA tasks - PHP 8.4 is already in Ubuntu 24.04 default repos

- Removed PHP PPA addition tasks from both playbooks
- Simplified package installation (no external PPA needed)
- PHP 8.4 available in Ubuntu 24.04 default repos
This commit is contained in:
Sebastian Palencsar
2026-05-06 13:35:17 +02:00
parent 9eac2c2057
commit 38241f82e3
2 changed files with 45 additions and 4 deletions

View File

@@ -80,7 +80,24 @@
# These variables come from inventory/production.yml
# wp_admin_user, wp_admin_password, wp_admin_email, wp_site_title
tasks:
tasks:
# IMPORTANT: Pre-flight checks - create basic directory structure FIRST
- name: Ensure /var/www exists
file:
path: /var/www
state: directory
mode: '0755'
tags: [preflight]
- name: Create web root directory
file:
path: /var/www/html
state: directory
owner: www-data
group: www-data
mode: '0755'
tags: [preflight]
# Package Installation
- name: Update package cache
apt:
@@ -88,9 +105,15 @@
cache_valid_time: 3600
tags: packages
- name: Install gnupg for PPA
- name: Install nginx first (required for web root)
apt:
name: nginx
state: present
tags: [packages, nginx]
- name: Install all required packages
package:
name: gnupg
name: "{{ packages }}"
state: present
tags: packages