Ansible - Install Microsoft Office

I’m wanting to install Microsoft Office on notebooks, but I have machines that have 2016 and 2019 licenses. Can anyone tell me if it’s possible to choose between the two options and install only one with some module in Ansible?