Ambari uses a local postgres db by default. This page describes how to configure ambari-server with a local mysql server.
Get the latest Ambari from the repository. Note that you should use the newest version listed on the documentation page.
Install the 3rd party repository:
cd /etc/yum.repos.d/