We wrote our own Api wrapper to run Ansible commands on our infrastructure. It aims to encapsulate all the complicated bits. Maybe this is of interest to you:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;seantis&#x2F;suitable" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;seantis&#x2F;suitable</a><p>We use Puppet mainly, but depend on Ansible for updates, migrations and other things where we want to control the transition, not just the end state.