PROVIDENCE, R.I. (AP) — The former mayor of Central Falls has agreed to pay a $7,000 penalty and admit he violated ethics rules by accepting a new furnace from a campaign contributor who got a lucrative city contract, Rhode Island ethics officials say.

The state Ethics Commission voted unanimously Tuesday to approve the agreement with Charles Moreau. Moreau pleaded guilty in November to a federal corruption charge related to the gift. He is scheduled to be sentenced next month.

The agreement ends a yearslong ethics probe of the former mayor, who stepped down last year. Moreau was stripped of most of his powers in 2010 when the state took over the city to manage its finances. The 1.3 square-mile city of 19,000 people emerged from bankruptcy last fall.

Moreau accepted the nearly $7,000 furnace and home repair work from Michael Bouthillette, a friend who received a no-bid contract to board up vacant homes in Central Falls. Bouthillette has also pleaded guilty in the case.

Ethics Commission Chairman Ross Cheit called the fine ‘‘a very solid amount’’ and said he is pleased the case has concluded.

‘‘Any time you can reach a reasonable, informal resolution, that’s better than going to trial,’’ Cheit said. ‘‘He (Moreau) wanted it done.’’

A message left with Moreau’s attorney was not immediately returned Tuesday.