Skip to content

Commit

Permalink
Issue #90: PHP 8.3 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Jul 5, 2024
1 parent bf9bf9d commit 995b0a7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,18 @@ jobs:
# Default PHP version.
- distro: rockylinux9
playbook: converge.yml
- distro: centos7
playbook: converge.yml
- distro: ubuntu2204
playbook: converge.yml
- distro: debian10
- distro: debian11
playbook: converge.yml

# PHP 8.1.
# PHP 8.2.
- distro: rockylinux8
playbook: 8.1.yml
- distro: ubuntu2004
playbook: 8.1.yml
- distro: debian10
playbook: 8.1.yml
playbook: 8.2.yml
- distro: ubuntu2204
playbook: 8.2.yml
- distro: debian11
playbook: 8.2.yml

# PHP 7.4.
- distro: rockylinux8
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ N/A

Available variables are listed below, along with default values (see `defaults/main.yml`):

php_version: '8.2'
php_version: '8.3'

The PHP version to be installed. Any [currently-supported PHP major version](http://php.net/supported-versions.php) is a valid option (e.g. `7.4`, `8.0`, `8.1`, or `8.2`).
The PHP version to be installed. Any [currently-supported PHP major version](http://php.net/supported-versions.php) is a valid option (e.g. `7.4`, `8.1`, `8.2`, or `8.3`).

php_versions_install_recommends: false

Expand All @@ -31,7 +31,7 @@ The PHP version to be installed. Any [currently-supported PHP major version](htt
become: true

vars:
php_version: '8.2'
php_version: '8.3'

roles:
- name: geerlingguy.repo-remi
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# The PHP version to be installed.
php_version: '8.2'
php_version: '8.3'

# For Debian OSes only.
php_versions_install_recommends: false
2 changes: 1 addition & 1 deletion molecule/default/8.1.yml → molecule/default/8.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

vars:
php_enable_webserver: false
php_version: '8.1'
php_version: '8.2'

pre_tasks:
- name: Update apt cache.
Expand Down
4 changes: 4 additions & 0 deletions tasks/setup-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
set_fact: php_enablerepo="remi,remi-php82"
when: php_version == "8.2"

- name: Enable remi repo for PHP 8.3.
set_fact: php_enablerepo="remi,remi-php83"
when: php_version == "8.3"

# See: https://github.com/ansible/ansible/issues/64852
- block:

Expand Down
3 changes: 3 additions & 0 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ php_versions_debian:
- php7.3-common
- php7.4-common
- php8.0-common
- php8.1-common
- php8.2-common
- php8.3-common

0 comments on commit 995b0a7

Please sign in to comment.