Updating hosts cookbook to properly write lines