Ansible is supported on the most recent versions of Ubuntu. Typically, any LTS (Long Term Support) release should work fine.