# Replace launch config with launch template using ansible

**URL:** <https://forum.ansible.com/t/replace-launch-config-with-launch-template-using-ansible/36337>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [February 16, 2022, 4:13pm UTC](https://forum.ansible.com/t/replace-launch-config-with-launch-template-using-ansible/36337 "2022-02-16T16:13:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shivani\_Arora](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Shivani\_Arora](https://forum.ansible.com/u/Shivani_Arora)\
**Post date:** [February 16, 2022, 4:13pm UTC](https://forum.ansible.com/t/replace-launch-config-with-launch-template-using-ansible/36337/1 "2022-02-16T16:13:35Z")

</div>

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.
