Deprecate PHP 7.2 support and add warnings about using it.
This commit is contained in:
parent
6a9b4b66ad
commit
7ea6036859
|
@ -41,7 +41,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Default PHP version (7.3).
|
# Default PHP version (7.4).
|
||||||
- distro: centos8
|
- distro: centos8
|
||||||
playbook: converge.yml
|
playbook: converge.yml
|
||||||
- distro: centos7
|
- distro: centos7
|
||||||
|
@ -59,19 +59,13 @@ jobs:
|
||||||
- distro: debian10
|
- distro: debian10
|
||||||
playbook: 8.0.yml
|
playbook: 8.0.yml
|
||||||
|
|
||||||
# PHP 7.4.
|
# PHP 7.3.
|
||||||
- distro: centos8
|
- distro: centos8
|
||||||
playbook: 7.4.yml
|
playbook: 7.3.yml
|
||||||
- distro: ubuntu1804
|
- distro: ubuntu1804
|
||||||
playbook: 7.4.yml
|
playbook: 7.3.yml
|
||||||
- distro: debian10
|
- distro: debian10
|
||||||
playbook: 7.4.yml
|
playbook: 7.3.yml
|
||||||
|
|
||||||
# PHP 7.2.
|
|
||||||
- distro: centos8
|
|
||||||
playbook: 7.2.yml
|
|
||||||
- distro: ubuntu1804
|
|
||||||
playbook: 7.2.yml
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the codebase.
|
- name: Check out the codebase.
|
||||||
|
|
|
@ -12,9 +12,9 @@ N/A
|
||||||
|
|
||||||
Available variables are listed below, along with default values (see `defaults/main.yml`):
|
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
|
php_versions_install_recommends: false
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ The PHP version to be installed. Any [currently-supported PHP major version](htt
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
php_version: '7.3'
|
php_version: '7.4'
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- name: geerlingguy.repo-remi
|
- name: geerlingguy.repo-remi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
# The PHP version to be installed.
|
# The PHP version to be installed.
|
||||||
php_version: '7.3'
|
php_version: '7.4'
|
||||||
|
|
||||||
# For Debian OSes only.
|
# For Debian OSes only.
|
||||||
php_versions_install_recommends: false
|
php_versions_install_recommends: false
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
php_enable_webserver: false
|
php_enable_webserver: false
|
||||||
php_version: '7.2'
|
php_version: '7.3'
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Update apt cache.
|
- name: Update apt cache.
|
|
@ -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
|
|
|
@ -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.
|
- name: Enable remi repo for PHP 7.2.
|
||||||
set_fact: php_enablerepo="remi,remi-php72"
|
set_fact: php_enablerepo="remi,remi-php72"
|
||||||
when: php_version == "7.2"
|
when: php_version == "7.2"
|
||||||
|
|
|
@ -39,6 +39,8 @@ __php_packages:
|
||||||
- "php{{ php_version }}-yaml"
|
- "php{{ php_version }}-yaml"
|
||||||
|
|
||||||
php_versions_debian:
|
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.2-common
|
||||||
- php7.3-common
|
- php7.3-common
|
||||||
- php7.4-common
|
- php7.4-common
|
||||||
|
|
Loading…
Reference in New Issue