Hi @Edwio ,
Unfortunately I don't have any experience with Ansible, but it should definitely be possible to achieve.
Here's an example of how they use the Ansible role to install "OMS" agent:
https://github.com/svendewindt/ansible-role-omsagent-linux
Since the SCOM agent is an .msi file, you can refer to the Ansible documentation below on how to install/uninstall Windows .msi files:
win_msi – Installs and uninstalls Windows MSI files
https://docs.ansible.com/ansible/2.7/modules/win_msi_module.html
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Best regards,
Leon