refactor ansible scripts