Sri Lanka was a unique case where Indian Army was fighting Indian Intelligence Agencies. Indians were killing Indians.Srilanka was next door to India, Indians had a strong terrorist group, the LTTE, on their side (which was created, trained, supported, and controlled by terrorist Indian agency RA&W), and a weak enemy (in the form of SL military). And yet Indians couldn't get many body-bags before running out of that theater with their wet tails stuck between their legs. Afghanistan is a totally different ballgame. Indians simply have no balls to even get there without American protection.
Of course, in Afghanistan Taliban will do it themselves.