Deprecate PHP 7.2 support and add warnings about using it.

This commit is contained in:
Jeff Geerling 2021-03-18 16:33:55 -05:00
parent 6a9b4b66ad
commit 7ea6036859
7 changed files with 14 additions and 40 deletions

View File

@ -41,7 +41,7 @@ jobs:
strategy:
matrix:
include:
# Default PHP version (7.3).
# Default PHP version (7.4).
- distro: centos8
playbook: converge.yml
- distro: centos7
@ -59,19 +59,13 @@ jobs:
- distro: debian10
playbook: 8.0.yml
# PHP 7.4.
# PHP 7.3.
- distro: centos8
playbook: 7.4.yml
playbook: 7.3.yml
- distro: ubuntu1804
playbook: 7.4.yml
playbook: 7.3.yml
- distro: debian10
playbook: 7.4.yml
# PHP 7.2.
- distro: centos8
playbook: 7.2.yml
- distro: ubuntu1804
playbook: 7.2.yml
playbook: 7.3.yml
steps:
- name: Check out the codebase.

View File

@ -12,9 +12,9 @@ N/A
Available variables are listed below, along with default values (see `defaults/main.yml`):
php_version: '7.3'
php_version: '7.4'
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.2`, `7.3`, `7.4` etc.).
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.3`, `7.4`, or `8.0`).
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: '7.3'
php_version: '7.4'
roles:
- name: geerlingguy.repo-remi

View File

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

View File

@ -5,7 +5,7 @@
vars:
php_enable_webserver: false
php_version: '7.2'
php_version: '7.3'
pre_tasks:
- name: Update apt cache.

View File

@ -1,24 +0,0 @@
---
- name: Converge
hosts: all
become: true
vars:
php_enable_webserver: false
php_version: '7.4'
pre_tasks:
- name: Update apt cache.
apt: update_cache=true cache_valid_time=600
when: ansible_os_family == 'Debian'
roles:
- role: geerlingguy.repo-remi
when: ansible_os_family == 'RedHat'
- role: geerlingguy.php-versions
- role: geerlingguy.php
post_tasks:
- name: Confirm PHP version is correct.
shell: php -v | grep -F '{{ php_version }}'
changed_when: false

View File

@ -1,4 +1,6 @@
---
# TODO: PHP 7.2 support will be removed soon. This is only being left in here as
# a convenience for legacy PHP 7.2 users.
- name: Enable remi repo for PHP 7.2.
set_fact: php_enablerepo="remi,remi-php72"
when: php_version == "7.2"

View File

@ -39,6 +39,8 @@ __php_packages:
- "php{{ php_version }}-yaml"
php_versions_debian:
# TODO: PHP 7.2 support will be removed soon. This is only being left in here as
# a convenience for legacy PHP 7.2 users.
- php7.2-common
- php7.3-common
- php7.4-common