Managed to fix the issue.
within the block of code under Edit omsagent.conf, I was using the template module and specified it as:
ansible.builtin.template:
This works fine when it is ran locally on the machine but for some reason AWX doesnt seem to like that so instead I changed it to:
template:
Hope this helps anyone that does come across this issue. Thanks.