Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #42: Added PHP 8.4 to Ansible recipes #43

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion wsl/os/almalinux9/FAQ.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ Execute the following command:
sudo dnf module switch-to php:remi-{major}.{minor} -y
```

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

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

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

1 change: 1 addition & 0 deletions wsl/os/almalinux9/roles/system/templates/bash_profile.j2
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ alias php80="sudo dnf module switch-to php:remi-8.0 -y"
alias php81="sudo dnf module switch-to php:remi-8.1 -y"
alias php82="sudo dnf module switch-to php:remi-8.2 -y"
alias php83="sudo dnf module switch-to php:remi-8.3 -y"
alias php84="sudo dnf module switch-to php:remi-8.4 -y"

# Node.js version switcher commands
alias node18="sudo dnf remove nodejs -y && curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash - && sudo dnf install nodejs -y"
20 changes: 20 additions & 0 deletions wsl/os/ubuntu20/roles/php/tasks/php84.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: Add ppa:ondrej/php repository
apt_repository:
repo: ppa:ondrej/php
update_cache: true
- name: Install PHP 8.4
apt:
name:
- php8.4
- php8.4-common
- php8.4-bz2
- php8.4-cli
- php8.4-curl
- php8.4-intl
- php8.4-mbstring
- php8.4-mysql
- php8.4-xml
- php8.4-zip
- libapache2-mod-php8.4
state: present
1 change: 1 addition & 0 deletions wsl/os/ubuntu20/roles/php/vars/main.yml
Original file line number Diff line number Diff line change
@@ -4,4 +4,5 @@ php_versions:
- "74"
- "81"
- "82"
- "84"
- "83"