From bc1e3d22c202dd10d86972effc2bf55179f55500 Mon Sep 17 00:00:00 2001 From: Ted Timmons Date: Thu, 12 Oct 2017 12:31:42 -0700 Subject: [PATCH] [cloud][docs] Document default/required 'state' in CloudFormation module (#31642) * fix documentation to match default/required status of 'state' * add 'choices' --- lib/ansible/modules/cloud/amazon/cloudformation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/cloudformation.py b/lib/ansible/modules/cloud/amazon/cloudformation.py index b6f65413ab..cba467cab4 100644 --- a/lib/ansible/modules/cloud/amazon/cloudformation.py +++ b/lib/ansible/modules/cloud/amazon/cloudformation.py @@ -47,7 +47,9 @@ options: description: - If state is "present", stack will be created. If state is "present" and if stack exists and template has changed, it will be updated. If state is "absent", stack will be removed. - required: true + default: present + choices: [ present, absent ] + required: false template: description: - The local path of the cloudformation template.