ansible-personal/roles/php-fpm/tasks/main.yml

22 lines
895 B
YAML
Raw Normal View History

---
# Note: Debian 9's php-fpm config is identical to Ubuntu 16.04's, so for now we
2018-03-18 21:39:02 +01:00
# can capitalize on that and use the same tasks. Ubuntu 18.04 uses php-fpm 7.2.
# Debian 10 uses php-fpm 7.3.
- name: Configure php-fpm on Ubuntu 16.04 and Debian 9
include_tasks: Ubuntu.yml
when: (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('16.04', '==')) or (ansible_distribution == 'Debian' and ansible_distribution_major_version is version('9', '=='))
tags: php-fpm
- name: Configure php-fpm on Ubuntu 18.04
include_tasks: Ubuntu_18.04.yml
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('18.04', '==')
tags: php-fpm
- name: Configure php-fpm on Debian 10
include_tasks: Debian_10.yml
when: ansible_distribution == 'Debian' and ansible_distribution_version is version('10', '==')
tags: php-fpm
# vim: set ts=2 sw=2: