php: enforce Debian version with assert instead of fail

This commit is contained in:
Jérémy Lecour 2021-09-29 16:43:05 +02:00 committed by Jérémy Lecour
parent febc76b26c
commit 0eb7332a34
2 changed files with 23 additions and 8 deletions

View file

@ -4,14 +4,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
This project does not follow semantic versioning. This project does not follow semantic versioning.
The **major** part of the version is aligned with the stable version of Debian. The **major** part of the version is the year
The **minor** part changes with big changes (probably incompatible). The **minor** part changes is the month
The **patch** part changes incrementally at each release. The **patch** part changes is incremented if multiple releases happen the same month
## [Unreleased] ## [Unreleased]
### Added ### Added
### Changed
### Fixed
### Removed
### Security
## [21.09] 2021-09-29
### Added
* Preliminary support for Debian 11 « Bullseye » * Preliminary support for Debian 11 « Bullseye »
* apache: new variable for mpm mode (+ updated default config accordingly) * apache: new variable for mpm mode (+ updated default config accordingly)
* certbot: add script for manual deploy hooks execution * certbot: add script for manual deploy hooks execution
@ -32,6 +44,7 @@ The **patch** part changes incrementally at each release.
### Changed ### Changed
* Change version pattern
* Use python3 modules for Debian 11 and later * Use python3 modules for Debian 11 and later
* Remove embedded GPG keys only if legacy keyring is present * Remove embedded GPG keys only if legacy keyring is present
* apt: remove workaround for Evolix public repositories with Debian 11 * apt: remove workaround for Evolix public repositories with Debian 11
@ -50,6 +63,7 @@ The **patch** part changes incrementally at each release.
* logstash: elastic_stack_version = 7.x * logstash: elastic_stack_version = 7.x
* mysql: mariadb-client-10.5 on Debian 11 * mysql: mariadb-client-10.5 on Debian 11
* mysql: use python3 with Debian 11 and later * mysql: use python3 with Debian 11 and later
* php: enforce Debian version with assert instead of fail
* squid: improve default whitelist (more specific patterns) * squid: improve default whitelist (more specific patterns)
* squid: must be started in foreground mode for systemd * squid: must be started in foreground mode for systemd
* squid: remove obsolete variable on Squid 4 * squid: remove obsolete variable on Squid 4
@ -63,8 +77,6 @@ The **patch** part changes incrementally at each release.
* php: remove php-gettext for 7.4 * php: remove php-gettext for 7.4
* logstash: no more dependency on Java * logstash: no more dependency on Java
### Security
## [10.6.0] 2021-06-28 ## [10.6.0] 2021-06-28
### Added ### Added

View file

@ -1,8 +1,11 @@
--- ---
- fail: - assert:
msg: only compatible with Debian >= 8 that:
when: ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<') - ansible_distribution != "Debian"
- ansible_distribution_major_version is version('8', '>=')
- ansible_distribution_major_version is version('11', '<=')
msg: This is only compatible with Debian 8 → 11
- include: main_jessie.yml - include: main_jessie.yml
when: ansible_distribution_release == "jessie" when: ansible_distribution_release == "jessie"