Ansible playbook for configuring runit to supervise an uberjar? We are using Ansible 1.9 for deploying Spring Boot microservices.  We are using CentOS 6 and the services are packaged as rpms. We intend to configure the executable jar files to be supervised by runit, instead of SysVinit or Upstart.

Is it reasonable to package the runit config inside the RPM, and let Ansible only deploy specific properties into /etc/sysconfig, or does a better way to use Ansible for the full runit config exist, so that the service would be decoupled from that host configuration?
So both have their place. On one hand, putting service definitions in the package helps to keep the number of "moving pieces" to a minimum. On the other, it also requires a more complex package build process to at least some degree (like you would have to build your own packages for things instead of using distro packages). If you have the capability to do it in packages, that seems better since moving pieces in prod will always eventually break.