---
- name: install php-fpm
  pacman: name=php-fpm,php-gd,php-pgsql state=present

- name: install php-fpm units
  copy: >
    src={{ item }} dest=/etc/systemd/system/{{ item }}
    owner=root group=root mode=0644
  with_items:
    - php-fpm@.socket
    - php-fpm@.service
  notify: daemon reload

- name: configure default php.ini
  template: >
    src=php.ini.j2 dest=/etc/php/php.ini
    owner=root group=root mode=0644
