Restructuring ansible scripts