--- - stat: path=/etc/php5/fpm/php.ini register: phpfpm - stat: path=/etc/php5/cli/php.ini register: phpcli - include: php-fpm.yml when: phpfpm.stat.exists - include: php-cli.yml when: phpcli.stat.exists
info at phpclasses dot org