I'm creating an ansible role that installs a pear module (pam). I want the role to check if the module is already installed using a creates= clause.
This module installs itself in /usr/lib/php5/20121212/pam.so but it feels a bit shaky to rely on that. What is a better way to find out where the php extension modules are stored?