rewrite ansible