---
- stat: path=/etc/php/{{ phpversion }}/apache2/php.ini
  register: modphp

- stat: path=/etc/php/{{ phpversion }}/fpm/php.ini
  register: phpfpm

- stat: path=/etc/php/{{ phpversion }}/cli/php.ini
  register: phpcli

- include: php-fpm.yml
  when: phpfpm.stat.exists

- include: php-cli.yml
  when: phpcli.stat.exists

- include: mod-php.yml
  when: modphp.stat.exists

