Using Ansible per directory instead of per host : <p>I know it will sound a bit strange but I wonder if there is a way to use Ansible per directory instead of per host.</p>

<p>Our current use case is the following: the same application (here WordPress) is deployed into multiple folders onto the same host (probably a very common scenario at a hosting provider).</p>

<p>We want to manage the configuration of all the instances in a 'smart' way (hence the idea of using Ansible). for instance, the same file (plugin) should be copied into the same subfolders of the instances.</p>

<p>This could be very easily achieved if all instances were hosted on different hosts, but I can find a way to achieve this in different folders on the same host.</p>

<p>Is that completely stupid? Is there a better tool to do that? Any insight will be greatly appreciated.</p>
