Add some Ubuntu version conditionals to ubuntu/roles/php/tasks/main.yml

This commit is contained in:
staticsafe 2018-06-10 13:10:56 -04:00
parent 4d992b8fc7
commit f5d3828f3c
1 changed files with 4 additions and 0 deletions

View File

@ -8,4 +8,8 @@
- name: Install php-fpm
apt: pkg=php-fpm state=latest
- name: Start PHP-FPM daemon, and make sure it is started on boot
when: ansible_distribution_release == 'xenial'
service: name=php7.0-fpm state=started enabled=yes
- name: Start PHP-FPM daemon, and make sure it is started on boot
when: ansible_distribution_release == 'bionic'
service: name=php7.2-fpm state=started enabled=yes