From 8f926ff10adf41930afca9f3a017c65137f6bc86 Mon Sep 17 00:00:00 2001 From: Sebastien Rosset Date: Sun, 30 Jan 2022 04:12:43 -0800 Subject: [PATCH] improve doc (#901) Improve doc of ec2_launch_template module SUMMARY Add information about how the ec2_launch_template handles initial creation of the launch template, or creation of a new version of the launch template. ISSUE TYPE Docs Pull Request COMPONENT NAME ec2_launch_template ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz Reviewed-by: Mark Woolley Reviewed-by: Mark Chappell (cherry picked from commit 37d758ec03047e254aa462cba7e6c308c44a2682) --- plugins/modules/ec2_launch_template.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/modules/ec2_launch_template.py b/plugins/modules/ec2_launch_template.py index e96049fa347..1051c1b7c66 100644 --- a/plugins/modules/ec2_launch_template.py +++ b/plugins/modules/ec2_launch_template.py @@ -31,6 +31,11 @@ template_name: description: - The template name. This must be unique in the region-account combination you are using. + - If no launch template exists with the specified name, a new launch template is created. + - If a launch template with the specified name already exists and the configuration has not changed, + nothing happens. + - If a launch template with the specified name already exists and the configuration has changed, + a new version of the launch template is created. aliases: [name] type: str default_version: