BUFFALO, N.Y. — Person familiar with talks to AP: Rex Ryan agrees to coach Buffalo Bills.