- stat: "path={{ php_fpm_log }}"
  register: log_file
- name: create PHP-FPM log file
  file: "path={{ php_fpm_log }} state=touch owner=www-data group=www-data mode=0777"
  when: log_file.stat.exists is defined and log_file.stat.exists

- name: Copy PHP configs
  template:
    src: "files/php/configs/5.6/{{ item }}"    
    dest: "/etc/php/5.6/{{ item }}"
  with_items:
      - cli/php.ini
      - mods-available/xdebug.ini
      - fpm/pool.d/www.conf
      - fpm/php.ini
