Add not_if guards around APC and service install