From 07d96b62b5072bb9a258601d8099eedb387245bb Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Fri, 11 Nov 2016 22:27:33 +0000 Subject: [PATCH] Use native YAML (#3434) --- .../modules/extras/cloud/amazon/cloudtrail.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/cloudtrail.py b/lib/ansible/modules/extras/cloud/amazon/cloudtrail.py index 7e76f4848bc..8a8fad33415 100644 --- a/lib/ansible/modules/extras/cloud/amazon/cloudtrail.py +++ b/lib/ansible/modules/extras/cloud/amazon/cloudtrail.py @@ -80,16 +80,25 @@ extends_documentation_fragment: aws EXAMPLES = """ - name: enable cloudtrail local_action: cloudtrail - state=enabled name=main s3_bucket_name=ourbucket - s3_key_prefix=cloudtrail region=us-east-1 + state: enabled + name: main + s3_bucket_name: ourbucket + s3_key_prefix: cloudtrail + region: us-east-1 - name: enable cloudtrail with different configuration local_action: cloudtrail - state=enabled name=main s3_bucket_name=ourbucket2 - s3_key_prefix='' region=us-east-1 + state: enabled + name: main + s3_bucket_name: ourbucket2 + s3_key_prefix: '' + region: us-east-1 - name: remove cloudtrail - local_action: cloudtrail state=disabled name=main region=us-east-1 + local_action: cloudtrail + state: disabled + name: main + region: us-east-1 """ HAS_BOTO = False