Getting host lists from Foreman via Ansible

There is a tutorial Set up Foreman and manage it with Ansible