Remove references to Debian 8

I don't need or want to support Debian 8 anymore so I can remove all
references to it in comments and code.
This commit is contained in:
2017-11-05 00:54:53 +02:00
parent b87f2e2fb0
commit b0524d2a2e
5 changed files with 2 additions and 42 deletions

View File

@ -1,8 +1,4 @@
---
# For Debian 8
- name: restart php5-fpm
service: name=php5-fpm state=restarted
# For Ubuntu 16.04 and Debian 9
- name: reload php7.0-fpm
systemd: name=php7.0-fpm state=reloaded

View File

@ -1,31 +0,0 @@
---
- name: Install php5-fpm and deps
apt: name={{ item }} state=present update_cache=yes
with_items:
- php5-fpm
# for WordPress
- php5-mysql
- php5-gd
- php5-curl
tags: php-fpm, packages
# only copy php-fpm config for vhosts that need WordPress or PHP
- name: Copy php5-fpm pool config
template: src=pool.conf.j2 dest=/etc/php5/fpm/pool.d/{{ item.domain_name }}.conf owner=root group=root mode=0644
with_items: "{{ nginx_vhosts }}"
when: (item.has_wordpress is defined and item.has_wordpress == True) or (item.needs_php is defined and item.needs_php == True)
notify: restart php5-fpm
tags: php-fpm
- name: Remove default www pool
file: path=/etc/php5/fpm/pool.d/www.conf state=absent
notify: restart php5-fpm
tags: php-fpm
# re-configure php.ini
- name: Update php.ini
template: src=php.ini.j2 dest=/etc/php5/fpm/php.ini owner=root group=root mode=0644
notify: restart php5-fpm
tags: php-fpm
# vim: set ts=2 sw=2:

View File

@ -2,11 +2,6 @@
# 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.
- name: Configure php-fpm on old Debian
import_tasks: Debian.yml
when: ansible_distribution == 'Debian' and ansible_distribution_major_version | version_compare('9', '<')
tags: php-fpm
- name: Configure php-fpm on Ubuntu and Debian 9
import_tasks: Ubuntu.yml
when: ansible_distribution == 'Ubuntu' or (ansible_distribution == 'Debian' and ansible_distribution_major_version | version_compare('9', '=='))