Skip to content

Commit 4935fc6

Browse files
committed
Issue #42: Added PHP 8.4 to Ansible recipes
Signed-off-by: alexmerlin <[email protected]>
1 parent 1b021b4 commit 4935fc6

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

wsl/os/almalinux9/FAQ.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Execute the following command:
88
sudo dnf module switch-to php:remi-{major}.{minor} -y
99
```
1010

11-
where `{major}.{minor}` is one of the supported PHP versions: `8.3`, `8.2`, `8.1`, `8.0` and `7.4`.
11+
where `{major}.{minor}` is one of the supported PHP versions: `8.4`, `8.3`, `8.2`, `8.1`, `8.0` and `7.4`.
1212

1313
Additionally, our setup includes predefined aliases for executing the above command.
1414
The aliases are the following:
@@ -18,6 +18,7 @@ The aliases are the following:
1818
- `php81`: switch to PHP 8.1
1919
- `php82`: switch to PHP 8.2
2020
- `php83`: switch to PHP 8.3
21+
- `php84`: switch to PHP 8.4
2122

2223
After switching to a different PHP version, test with the following command:
2324

wsl/os/almalinux9/roles/system/templates/bash_profile.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ alias php80="sudo dnf module switch-to php:remi-8.0 -y"
44
alias php81="sudo dnf module switch-to php:remi-8.1 -y"
55
alias php82="sudo dnf module switch-to php:remi-8.2 -y"
66
alias php83="sudo dnf module switch-to php:remi-8.3 -y"
7+
alias php84="sudo dnf module switch-to php:remi-8.4 -y"
78

89
# Node.js version switcher commands
910
alias node18="sudo dnf remove nodejs -y && curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash - && sudo dnf install nodejs -y"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
- name: Add ppa:ondrej/php repository
3+
apt_repository:
4+
repo: ppa:ondrej/php
5+
update_cache: true
6+
- name: Install PHP 8.4
7+
apt:
8+
name:
9+
- php8.4
10+
- php8.4-common
11+
- php8.4-bz2
12+
- php8.4-cli
13+
- php8.4-curl
14+
- php8.4-intl
15+
- php8.4-mbstring
16+
- php8.4-mysql
17+
- php8.4-xml
18+
- php8.4-zip
19+
- libapache2-mod-php8.4
20+
state: present

wsl/os/ubuntu20/roles/php/vars/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ php_versions:
44
- "74"
55
- "81"
66
- "82"
7+
- "84"
78
- "83"

0 commit comments

Comments
 (0)