1. A processor-implemented method of responding to detection of a problem in an information technology (IT) infrastructure, the method comprising the steps of: determining by a processor one or more target configurations of the IT infrastructure such that migrating a current configuration of the IT infrastructure to the one or more target configurations will align the IT infrastructure with one or more configuration templates; determining by the processor one or more remediation actions, wherein a given remediation action is applicable to the IT infrastructure configuration when migrated from the current configuration to at least one of the one or more target configurations; determining by the processor one or more resolutions of the problem, wherein a given resolution of the problem comprises: migrating the current configuration of the IT infrastructure to a given one of the one or more target configurations, thereby aligning the IT infrastructure with at least one of the one or more configuration templates; and applying at least one of the one or more remediation actions to the IT infrastructure once the current configuration of the IT infrastructure is migrated to the given one of the one or more target configurations; calculating by the processor at least one metric associated with the given resolution of the problem; and selecting by the processor the given resolution of the problem based at least in part on the at least one calculated metric; wherein the steps are performed responsive to the detection of the problem in the IT infrastructure.