Add PHP 8.2 support and set it as default.

This commit is contained in:
Jeff Geerling 2023-02-02 21:58:02 -06:00
parent 3c0a24606f
commit d241f91947
3 changed files with 8 additions and 4 deletions

View File

@ -12,9 +12,9 @@ N/A
Available variables are listed below, along with default values (see `defaults/main.yml`):
php_version: '8.1'
php_version: '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.0`, or `8.1`).
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`).
php_versions_install_recommends: false
@ -31,7 +31,7 @@ The PHP version to be installed. Any [currently-supported PHP major version](htt
become: true
vars:
php_version: '8.1'
php_version: '8.2'
roles:
- name: geerlingguy.repo-remi

View File

@ -1,6 +1,6 @@
---
# The PHP version to be installed.
php_version: '8.1'
php_version: '8.2'
# For Debian OSes only.
php_versions_install_recommends: false

View File

@ -21,6 +21,10 @@
set_fact: php_enablerepo="remi,remi-php81"
when: php_version == "8.1"
- name: Enable remi repo for PHP 8.2.
set_fact: php_enablerepo="remi,remi-php82"
when: php_version == "8.2"
# See: https://github.com/ansible/ansible/issues/64852
- block: