Oracle interview question

Write a ansible script to automate the Postgres installation.