refactor code
refactor ansible script