Rewrite yml file.