diff --git a/changelogs/fragments/53398-fix-ec2_launch_template-tags.yaml b/changelogs/fragments/53398-fix-ec2_launch_template-tags.yaml new file mode 100644 index 00000000000..0a2b6f5d20e --- /dev/null +++ b/changelogs/fragments/53398-fix-ec2_launch_template-tags.yaml @@ -0,0 +1,2 @@ +bugfixes: + - ec2_launch_template - Only 'volume' and 'instance' are valid resource types for tag specifications. diff --git a/lib/ansible/modules/cloud/amazon/ec2_launch_template.py b/lib/ansible/modules/cloud/amazon/ec2_launch_template.py index 93abfbfacf1..85a269e5353 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_launch_template.py +++ b/lib/ansible/modules/cloud/amazon/ec2_launch_template.py @@ -382,7 +382,7 @@ def params_to_launch_data(module, template_params): in template_params['tags'].items() ] } - for r_type in ('instance', 'network-interface', 'volume') + for r_type in ('instance', 'volume') ] del template_params['tags'] if module.params.get('iam_instance_profile'):