Apply index.default_pipeline to an index-pattern?

My data is split across monthly indexes such as virtualisation-capacity-2022-05. How do I set an index.default_pipeline for an index-pattern such as virtualisation-capacity-* so the default pipeline applies to all the monthly indexes past, present and future?

Use index templates. But I suppose it will be applied only to the future indices and have no effect on existing indices.