president reagan tapped powell for the white house post in november 1987 after powell had worked 10 months as deputy to national security adviser frank carlucci to reform the scandal-wracked office in the days following the iran-contra affair .