Install Postgresql14

I’m looking to move from Centos to Ubuntu to install postgresql-14. I don’t know what files are needed or how to make my playbook and roles .
Could someone help me please .
Thanks in advance

Hi
It’s a very wide question… what do you want to do through Ansible/AWX ? your CentOS=> Ubuntu migraiton on only installing postegresql ?
Please give people some details.