ansible-playbooks/ubuntu/roles/php/tasks/main.yml

16 lines
508 B
YAML
Raw Normal View History

---
- name: Install PHP libraries
apt: pkg={{ item }} state=latest
with_items:
- php-mysql
- php-xml
2017-01-13 02:43:11 +00:00
- 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