Source: Rex Ryan finalizing details to become Bills head coach

Former New York Jets head coach Rex Ryan is working out the final details to become the Buffalo Bills’ new head coach, according FOX Sports NFL Insider Alex Marvez.

In addition, 49ers offensive Greg Roman is going for a second meeting with Buffalo to finalize a deal to take the same position with the Bills under Rex Ryan, a source told Marvez.

Ryan reportedly interviewed with the Bills on both Thursday and Saturday. The Associated Press reported Sunday that Ryan has accepted the job.

Bills players were already expressing their support for Ryan in posts made on their Twitter accounts. 

Ryan, 52, was fired from the Jets one day after the team finished the 2014 season with a 4-12 record. In six seasons with New York, Ryan had overall 46-50 record.

"We’re in the win business, and we’re not winning," Jets owners Woody Johnson said at a news conference at the team’s facility at the time. "So, I thought this was something I had to do."

The Jets failed to make the postseason for the fourth consecutive season and Ryan was 4-2 in the postseason during his tenure with the team. He did reach the AFC title game twice during his tenure with the team.

It was a tough season for the Jets. After winning the season opener against Oakland, they lost eight in a row and eventually benched starting quarterback Geno Smith for a period as they worked to get back on track. Ultimately, they fell out of playoff contention and opted to make a coaching change.

FAIL MARY II: MORE MNF CONTROVERSY

The Bills opening came late in 2014, when head coach Doug Marrone decided to exercise the opt-out clause in his contract.

The second-year coach was the sixth Buffalo coach since Wade Phillips was fired following the 2000 season. Marrone’s announcement came as a surprise after the Bills’ 9-7 season, their first winning season since 2004. However, the team held on to the longest active postseason drought, at 15 years.

The opt-out clause in Marrone’s contract went into effect after Terry and Kim Pegula bought the team in October.