Ambari requires specific versions of the files for components that it uses. There are three steps you should take to make sure that these versions continue to be available:
Disable automatic OS updates
Do not update any components such as MySQL, Ganglia, etc.
If you must perform an OS update, do a manual kernel update only.