|
|
|
@ -58,7 +58,7 @@ options:
|
|
|
|
|
default: true
|
|
|
|
|
notes:
|
|
|
|
|
- Currently, the `serverless` command must be in the path of the node executing the task. In the future this may be a flag.
|
|
|
|
|
requirements: [ "serverless" ]
|
|
|
|
|
requirements: [ "serverless", "yaml" ]
|
|
|
|
|
author: "Ryan Scott Brown @ryansb"
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
@ -116,7 +116,12 @@ command:
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
import traceback
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
import yaml
|
|
|
|
|
HAS_YAML = True
|
|
|
|
|
except ImportError:
|
|
|
|
|
HAS_YAML = False
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
|
|
|
|
|
@ -159,6 +164,9 @@ def main():
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if not HAS_YAML:
|
|
|
|
|
module.fail_json(msg='yaml is required for this module')
|
|
|
|
|
|
|
|
|
|
service_path = module.params.get('service_path')
|
|
|
|
|
state = module.params.get('state')
|
|
|
|
|
functions = module.params.get('functions')
|
|
|
|
|