Converted agent and api to Ansible.