From c284125e6631f811e4c3df0b5d53575768125f43 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Thu, 1 Dec 2016 19:04:34 +0000 Subject: [PATCH] Native YAML - cloud/serverless (#3618) --- lib/ansible/modules/extras/cloud/serverless.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/serverless.py b/lib/ansible/modules/extras/cloud/serverless.py index 473624200e..e065139c71 100644 --- a/lib/ansible/modules/extras/cloud/serverless.py +++ b/lib/ansible/modules/extras/cloud/serverless.py @@ -60,11 +60,13 @@ author: "Ryan Scott Brown @ryansb" EXAMPLES = """ # Basic deploy of a service -- serverless: service_path={{ project_dir }} state=present +- serverless: + service_path: '{{ project_dir }}' + state: present # Deploy specific functions - serverless: - service_path: "{{ project_dir }}" + service_path: '{{ project_dir }}' functions: - my_func_one - my_func_two @@ -73,14 +75,14 @@ EXAMPLES = """ - serverless: stage: dev region: us-east-1 - service_path: "{{ project_dir }}" + service_path: '{{ project_dir }}' register: sls # The cloudformation stack is always named the same as the full service, so the # cloudformation_facts module can get a full list of the stack resources, as # well as stack events and outputs - cloudformation_facts: region: us-east-1 - stack_name: "{{ sls.service_name }}" + stack_name: '{{ sls.service_name }}' stack_resources: true """