diff --git a/.travis.yml b/.travis.yml index abd8b34..2f1809c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,13 @@ env: - PLATFORM='docker-debian-stretch-php70' ANSIBLE_VERSION='ansible>=2.6,<2.7' - - PLATFORM='docker-debian-stretch-php71' ANSIBLE_VERSION='ansible>=2.6,<2.7' - - PLATFORM='docker-debian-stretch-php72' ANSIBLE_VERSION='ansible>=2.6,<2.7' - - PLATFORM='docker-debian-stretch-php73' ANSIBLE_VERSION='ansible>=2.6,<2.7' - PLATFORM='docker-debian-buster-php73' ANSIBLE_VERSION='ansible>=2.6,<2.7' - PLATFORM='docker-ubuntu-xenial-php70' ANSIBLE_VERSION='ansible>=2.6,<2.7' - PLATFORM='docker-ubuntu-bionic-php72' ANSIBLE_VERSION='ansible>=2.6,<2.7' - PLATFORM='docker-ubuntu-bionic-php72' ANSIBLE_VERSION='ansible>=2.6,<2.7' - PLATFORM='docker-debian-stretch-php70' ANSIBLE_VERSION='ansible>=2.7,<2.8' - - PLATFORM='docker-debian-stretch-php71' ANSIBLE_VERSION='ansible>=2.7,<2.8' - - PLATFORM='docker-debian-stretch-php72' ANSIBLE_VERSION='ansible>=2.7,<2.8' - - PLATFORM='docker-debian-stretch-php73' ANSIBLE_VERSION='ansible>=2.7,<2.8' + - PLATFORM='docker-debian-stretch-php74' ANSIBLE_VERSION='ansible>=2.7,<2.8' - PLATFORM='docker-debian-buster-php73' ANSIBLE_VERSION='ansible>=2.7,<2.8' + - PLATFORM='docker-debian-buster-php74' ANSIBLE_VERSION='ansible>=2.7,<2.8' - PLATFORM='docker-ubuntu-xenial-php70' ANSIBLE_VERSION='ansible>=2.7,<2.8' - PLATFORM='docker-ubuntu-bionic-php72' ANSIBLE_VERSION='ansible>=2.7,<2.8' - PLATFORM='docker-ubuntu-bionic-php72' ANSIBLE_VERSION='ansible>=2.7,<2.8' diff --git a/README.md b/README.md index 07212cf..50479f1 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,14 @@ Install PHP on Debian / Ubuntu / FreeBSD. Manage PHP-FPM, APCu, Opcache and Xdeb Managed OS / Versions --------------------- -| OS | PHP 7.0 | PHP 7.1 | PHP 7.2 | PHP 7.3 | -|:---------------------:|:-------------------:|:--------------------------:|:--------------------------:|:-------------------------:| -| Debian Stretch (9) | :heavy_check_mark: | :heavy_check_mark: (Sury) | :heavy_check_mark: (Sury) | :heavy_check_mark: (Sury) | -| Debian Buster (10) | :x: | :x: | :x: | :heavy_check_mark: | -| Ubuntu Xenial (16.04) | :heavy_check_mark: | :x: | :x: | :x: | -| Ubuntu Bionic (18.04) | :x: | :x: | :heavy_check_mark: | :x: | -| FreeBSD 11 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | -| FreeBSD 12 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | +| OS | PHP 7.0 | PHP 7.1 | PHP 7.2 | PHP 7.3 | PHP 7.4 | +|:---------------------:|:-------------------:|:--------------------------:|:--------------------------:|:-------------------------:|:--------------------------: +| Debian Stretch (9) | :heavy_check_mark: | :heavy_check_mark: (Sury) | :heavy_check_mark: (Sury) | :heavy_check_mark: (Sury) | :heavy_check_mark: (Sury) | +| Debian Buster (10) | :x: | :x: | :x: | :heavy_check_mark: | :heavy_check_mark: (Sury) | +| Ubuntu Xenial (16.04) | :heavy_check_mark: | :x: | :x: | :x: | :x: | +| Ubuntu Bionic (18.04) | :x: | :x: | :heavy_check_mark: | :x: | :x: | +| FreeBSD 11 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | Need tests... | +| FreeBSD 12 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | Need tests... | Links: - [Sury](https://deb.sury.org/) diff --git a/Vagrantfile b/Vagrantfile index 2ceb8d1..d0b5a26 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,7 +10,9 @@ Vagrant.configure("2") do |config| { :name => "debian-stretch-php71", :box => "debian/stretch64", :vars => { "php_version": '7.1' }}, { :name => "debian-stretch-php72", :box => "debian/stretch64", :vars => { "php_version": '7.2' }}, { :name => "debian-stretch-php73", :box => "debian/stretch64", :vars => { "php_version": '7.3' }}, + { :name => "debian-stretch-php74", :box => "debian/stretch64", :vars => { "php_version": '7.4' }}, { :name => "debian-buster-php73", :box => "debian/buster64", :vars => { }}, + { :name => "debian-buster-php74", :box => "debian/buster64", :vars => { "php_version": '7.4' }}, { :name => "ubuntu-xenial-php70", :box => "ubuntu/xenial64", :vars => { }}, { :name => "ubuntu-bionic-php72", :box => "ubuntu/bionic64", :vars => { }}, ] @@ -25,7 +27,9 @@ Vagrant.configure("2") do |config| { :name => "docker-debian-stretch-php71", :docker => "hanxhx/vagrant-ansible:debian9", :vars => { "php_version": '7.1' }}, { :name => "docker-debian-stretch-php72", :docker => "hanxhx/vagrant-ansible:debian9", :vars => { "php_version": '7.2' }}, { :name => "docker-debian-stretch-php73", :docker => "hanxhx/vagrant-ansible:debian9", :vars => { "php_version": '7.3' }}, + { :name => "docker-debian-stretch-php74", :docker => "hanxhx/vagrant-ansible:debian9", :vars => { "php_version": '7.4' }}, { :name => "docker-debian-buster-php73", :docker => "hanxhx/vagrant-ansible:debian10", :vars => { }}, + { :name => "docker-debian-buster-php74", :docker => "hanxhx/vagrant-ansible:debian10", :vars => { "php_version": '7.4' }}, { :name => "docker-ubuntu-xenial-php70", :docker => "hanxhx/vagrant-ansible:ubuntu16.04", :vars => { }}, { :name => "docker-ubuntu-bionic-php72", :docker => "hanxhx/vagrant-ansible:ubuntu18.04", :vars => { }}, ] diff --git a/tasks/main.yml b/tasks/main.yml index 67eb72a..21d981c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,10 +1,5 @@ --- -- name: SET_FACT | Bypass https://github.com/ansible/ansible/issues/19874 - set_fact: - ansible_distribution_release: 'buster' - when: ansible_facts.distribution_major_version == "buster/sid" - - name: INCLUDE_VARS | Related to OS family include_vars: "OS_Family_{{ ansible_os_family }}.yml" diff --git a/tests/includes/pre_Debian.yml b/tests/includes/pre_Debian.yml index 2eb09bf..546526f 100644 --- a/tests/includes/pre_Debian.yml +++ b/tests/includes/pre_Debian.yml @@ -16,9 +16,10 @@ - curl - lsb-release - nginx + - vim - name: INCLUDE_TASKS | Sury include_tasks: Debian/sury.yml when: - (ansible_distribution_major_version is version('9', 'eq')) and - (php_version is version('7.1', 'ge')) + ((ansible_distribution_major_version is version('9', 'eq')) and (php_version is version('7.1', 'ge'))) or + ((ansible_distribution_major_version is version('10', 'eq')) and (php_version is version('7.4', 'ge'))) diff --git a/tests/test.yml b/tests/test.yml index 511a3ce..b682eef 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -4,7 +4,7 @@ vars: vhost: 'test.local' php_extra_packages: - - '{{ php_package_prefix }}recode' + - '{{ php_package_prefix }}pgsql' php_install_xdebug: true php_ini_fpm: display_errors: 'Off'