Replace launch config with launch template using ansible

Hi All,

I’m using aws launch configurations with autoscaling groups to launch ec2 instances using ansible playbooks. I have to migrate the existing instances to use a launch template instead of a launch configuration in a rolling fashion. Can anyone suggest what could be the approach for this in ansible?

Thanks.