As described in the link that i posted above, those steps works perfectly:
P.S. i stopped ambari-server before doing those
$ grep "password" /etc/ambari-server/conf/ambari.properties
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat
$ echo "bigdata_custom" > /etc/ambari-server/conf/password.dat
$ sudo -u postgres psql
postgres=# ALTER USER ambari WITH PASSWORD 'bigdata_custom';
postgres=# \q
$ ambari-server restart