summaryrefslogtreecommitdiff
path: root/cloud/amazon
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-01 16:39:21 +0000
committerJohn R Barker <john@johnrbarker.com>2016-12-01 16:39:21 +0000
commit270a7d905266213eb029d7e9878bb3384d856025 (patch)
tree90e6598d44c7ba7a11fb2e40d07b1de7302d77f7 /cloud/amazon
parent4c39eb666715afdb72b833ace8a2ffcff77da4c2 (diff)
downloadansible-modules-extras-270a7d905266213eb029d7e9878bb3384d856025.tar.gz
Cloud amazon and azure (#3610)
* Native YAML - cloud/amazon * Native YAML - cloud/azure
Diffstat (limited to 'cloud/amazon')
-rw-r--r--cloud/amazon/cloudformation_facts.py3
-rw-r--r--cloud/amazon/execute_lambda.py4
-rw-r--r--cloud/amazon/lambda_alias.py3
-rw-r--r--cloud/amazon/lambda_facts.py3
4 files changed, 9 insertions, 4 deletions
diff --git a/cloud/amazon/cloudformation_facts.py b/cloud/amazon/cloudformation_facts.py
index 381e479f..0e502ce5 100644
--- a/cloud/amazon/cloudformation_facts.py
+++ b/cloud/amazon/cloudformation_facts.py
@@ -68,7 +68,8 @@ EXAMPLES = '''
stack_name: my-cloudformation-stack
# Facts are published in ansible_facts['cloudformation'][<stack_name>]
-- debug: msg={{ ansible_facts['cloudformation']['my-cloudformation-stack'] }}
+- debug:
+ msg: '{{ ansible_facts['cloudformation']['my-cloudformation-stack'] }}'
# Get all stack information about a stack
- cloudformation_facts:
diff --git a/cloud/amazon/execute_lambda.py b/cloud/amazon/execute_lambda.py
index bd1b9288..03ab4264 100644
--- a/cloud/amazon/execute_lambda.py
+++ b/cloud/amazon/execute_lambda.py
@@ -108,7 +108,9 @@ EXAMPLES = '''
register: response
# the response will have a `logs` key that will contain a log (up to 4KB) of the function execution in Lambda.
-- execute_lambda: name=test-function version_qualifier=PRODUCTION
+- execute_lambda:
+ name: test-function
+ version_qualifier: PRODUCTION
'''
RETURN = '''
diff --git a/cloud/amazon/lambda_alias.py b/cloud/amazon/lambda_alias.py
index d744ca73..c85ecd2e 100644
--- a/cloud/amazon/lambda_alias.py
+++ b/cloud/amazon/lambda_alias.py
@@ -95,7 +95,8 @@ EXAMPLES = '''
role: "arn:aws:iam::{{ account }}:role/API2LambdaExecRole"
- name: show results
- debug: var=lambda_facts
+ debug:
+ var: lambda_facts
# The following will set the Dev alias to the latest version ($LATEST) since version is omitted (or = 0)
- name: "alias 'Dev' for function {{ lambda_facts.FunctionName }} "
diff --git a/cloud/amazon/lambda_facts.py b/cloud/amazon/lambda_facts.py
index 9103f69d..9c17df1d 100644
--- a/cloud/amazon/lambda_facts.py
+++ b/cloud/amazon/lambda_facts.py
@@ -82,7 +82,8 @@ EXAMPLES = '''
query: all
max_items: 20
- name: show Lambda facts
- debug: var=lambda_facts
+ debug:
+ var: lambda_facts
'''
RETURN = '''