php/tasks/main.yml

20 lines
462 B
YAML
Raw Normal View History

2019-04-14 14:49:30 +00:00
---
- name: Ensure php is installed.
pacman:
name:
- php
- php-fpm
state: present
become: yes
- name: Ensure php-fpm is started and enabled to start at boot.
service: name=php-fpm state=started enabled=yes
become: yes
- name: enable php extetion
become: true
lineinfile:
dest: /etc/php/php.ini
regexp: ";extension={{item}}"
line: "extension={{item}}"
with_items: "{{php_extention_enable}}"
notify: reload_php_fpm