So you propose to 
1. check if there's any node with roles:ceilometer-server
2. if so, install python-ceilometer on this node and continue, else
3. do not write ceilometer middleware line at all

Or do even remove the step 1 and only install python-ceilometer if ceilometer middleware is enabled? That I would not advise to.