Direct proof of use
French Navy material directly places the Rubis submarine in the Afghanistan-war naval deployment. The Marine nationale history of Rubis says that in 2002 the boat carried out a protection mission for Task Force 473 in the Indian Ocean during Operation Heracles, France's operation against terrorist networks off Afghanistan.
Mer et Marine gives the same operational role in a retirement account for Rubis, describing a 2002 protection mission for the aircraft carrier Charles de Gaulle as it deployed in the Indian Ocean during Operation Heracles against the Taliban in Afghanistan.
Sources: French Navy Rubis Command Article, Mer et Marine Rubis Retirement Article
Deployment context
The sourced role was naval force protection for the French carrier group, not a publicly documented submarine strike. GlobalSecurity's Operation Enduring Freedom deployment summary lists Rubis with Charles de Gaulle, the frigates Jean Bart, Jean de Vienne and La Motte-Picquet, and the supply tanker Meuse in the French air-and-sea group that sailed toward the northern Indian Ocean in December 2001.
The same deployment summary describes the French force as Combined Task Force 473 and says the air-and-sea group supported ground actions in Afghanistan while taking part in maritime patrols intended to prevent terrorist leaders from escaping by sea. That context matches the official French description of Rubis protecting Task Force 473 off Afghanistan.
Sources: GlobalSecurity OEF Deployments, French Navy Rubis Command Article
Operational role
Rubis appears in the record as a French Navy nuclear attack submarine attached to the coalition side: United States, NATO, and Afghan government forces. The public sources identify the boat's function as protection of Task Force 473 and of Charles de Gaulle during the Afghanistan-related Indian Ocean deployment.
The available sources do not document Rubis firing torpedoes or missiles, landing forces, or attacking targets in Afghanistan. The supported conflict-use claim is deployment and use as a protective submarine escort in the maritime component of France's Afghanistan-war contribution.
Sources: French Navy Rubis Command Article, Mer et Marine Rubis Retirement Article, GlobalSecurity OEF Deployments