ubborg-playbookie-pmb
v0.1.3
Published
Translate ubborg dependency trees into ansible playbooks.
Downloads
44
Readme
ubborg-playbookie-pmb
Translate ubborg dependency trees into ansible playbooks.
API
This module exports one function:
init(format, [opts])
Returns a Promise for a translate
function
that has the API described below.
format
is a supported input language specification
(see "Input formats" below)
and opts
is an optional options object.
Currently, no options are supported.
translate(resDescr)
Returns a Promise for, or a string of,
YAML code that can be used as an item in the tasks
list of an
ansible playbook to describe the resource described in resDescr
.
Usage
CLI: ./bin/cli.mjs todo.json
:TODO:
Input formats
The input language is specified as an object which must have at least the
name
and version
properties, both with a string value.
Currently supported languages:
- name
flatTodoJson
(as generated byubborg-planner-pmb
'sdepsTree
command), version200509-0700
.
Known issues
- Needs more/better tests and docs.
License
ISC