Automating Ansible behind an API