roles/php-fpm: Updates for Debian 9 (stretch)

Debian 9 is still in beta and doesn't have nginx.org builds yet, so
we need to use the nginx package in Debian's repositories, and that
required a bit of a different configuration.

After official nginx.org builds are released we can revert this.
This commit is contained in:
2017-01-30 15:11:39 +02:00
parent 1fef5c9b5a
commit 8c3a8fc26a
2 changed files with 14 additions and 2 deletions

View File

@ -1,11 +1,13 @@
---
# Note: Debian 9's php-fpm config is identical to Ubuntu 16.04's, so for now we
# can capitalize on that and use the same tasks.
- include: Debian.yml
when: ansible_distribution == 'Debian'
when: ansible_distribution == 'Debian' and ansible_distribution_major_version | version_compare('9', '<')
tags: php-fpm
- include: Ubuntu.yml
when: ansible_distribution == 'Ubuntu'
when: ansible_distribution == 'Ubuntu' or (ansible_distribution == 'Debian' and ansible_distribution_major_version | version_compare('9', '=='))
tags: php-fpm
# vim: set ts=2 sw=2: