cdk-ans
This package contains the core code to define Ansible playbooks as CDK.
It is part of the larger repo cdk-ans where documentation can be found.
API Reference
Constructs
App
Represents a cdk-ans application.
Initializers
| Name | Type | Description |
|---|---|---|
props |
AppProps |
configuration options. |
propsOptional
- Type: AppProps
configuration options.
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
synth |
Synthesizes all resources to the output directory. |
toString
Returns a string representation of this construct.
synth
Synthesizes all resources to the output directory.
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
inventories |
Inventory[] |
Returns all the inventories in this app, sorted topologically. |
outdir |
string |
The output directory into which files will be synthesized. |
playbooks |
Playbook[] |
Returns all the playbooks in this app, sorted topologically. |
projects |
Project[] |
Returns all the playbooks in this app, sorted topologically. |
roles |
Role[] |
Returns all the roles in this app, sorted topologically. |
synthesizer |
ISynthesizer |
The synthesizer that will be used to synthesize the project. |
nodeRequired
- Type: constructs.Node
The tree node.
inventoriesRequired
- Type: Inventory[]
Returns all the inventories in this app, sorted topologically.
outdirRequired
- Type: string
The output directory into which files will be synthesized.
playbooksRequired
- Type: Playbook[]
Returns all the playbooks in this app, sorted topologically.
projectsRequired
- Type: Project[]
Returns all the playbooks in this app, sorted topologically.
rolesRequired
- Type: Role[]
Returns all the roles in this app, sorted topologically.
synthesizerRequired
- Type: ISynthesizer
The synthesizer that will be used to synthesize the project.
Block
- Implements: ITaskChainable
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
BlockProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: BlockProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toJson |
No description. |
next |
No description. |
toString
Returns a string representation of this construct.
toJson
next
nextRequired
- Type: ITaskChainable
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
chain |
Step[] |
No description. |
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
tasks |
TaskDefinition |
No description. |
always |
TaskDefinition |
No description. |
notify |
Handler[] |
No description. |
rescue |
TaskDefinition |
No description. |
when |
Conditional |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
chainRequired
- Type: Step[]
nameRequired
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
tasksRequired
- Type: TaskDefinition
alwaysOptional
- Type: TaskDefinition
notifyOptional
- Type: Handler[]
rescueOptional
- Type: TaskDefinition
whenOptional
- Type: Conditional
File
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
FileProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: FileProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toString
Returns a string representation of this construct.
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
fileName |
string |
No description. |
path |
string |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
fileNameRequired
- Type: string
pathRequired
- Type: string
Handler
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
HandlerProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: HandlerProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toJson |
No description. |
toString
Returns a string representation of this construct.
toJson
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
chain |
Step[] |
No description. |
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
action |
TaskAction |
No description. |
listen |
string |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
chainRequired
- Type: Step[]
nameRequired
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
actionRequired
- Type: TaskAction
listenOptional
- Type: string
Host
- Implements: IHostIdentifiable
Represents a host in an Ansible inventory.
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
HostProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: HostProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
addVariables |
Assigns additional variables to this host. |
toJson |
No description. |
toString
Returns a string representation of this construct.
addVariables
Assigns additional variables to this host.
variablesRequired
- Type: HostVariable
A list of variables to add to this host.
toJson
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isHost |
Return whether the given object is a Host. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
isHost
Return whether the given object is a Host.
xRequired
- Type: any
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
ansibleConnection |
AnsibleConnection |
No description. |
ansibleHost |
string |
No description. |
identifier |
string |
No description. |
variables |
HostVariable[] |
No description. |
ansibleBecome |
boolean |
No description. |
ansiblePassword |
string |
No description. |
ansiblePort |
number |
No description. |
ansibleUser |
string |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
ansibleConnectionRequired
- Type: AnsibleConnection
ansibleHostRequired
- Type: string
identifierRequired
- Type: string
variablesRequired
- Type: HostVariable[]
ansibleBecomeOptional
- Type: boolean
ansiblePasswordOptional
- Type: string
ansiblePortOptional
- Type: number
ansibleUserOptional
- Type: string
HostGroup
- Implements: IHostIdentifiable
A group of hosts in an Ansible inventory.
Initializers
import { HostGroup } from 'cdk-ans'
new HostGroup(scope: Construct, name: string, props?: HostGroupProps)
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
HostGroupProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsOptional
- Type: HostGroupProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
addHosts |
Assigns additional hosts to this group. |
addSubGroups |
Assigns additional groups as subgroups to this group. |
addVariables |
Assigns additional variables to this group. |
toJson |
JSONify this group. |
toString
Returns a string representation of this construct.
addHosts
Assigns additional hosts to this group.
hostsRequired
- Type: Host
A list of hosts to add to this group.
addSubGroups
Assigns additional groups as subgroups to this group.
groupsRequired
- Type: HostGroup
A list of groups to add as subgroups to this group.
addVariables
Assigns additional variables to this group.
variablesRequired
- Type: HostVariable
A list of variables to add to this group.
toJson
JSONify this group.
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
groups |
{[ key: string ]: HostGroup} |
No description. |
hosts |
Host[] |
No description. |
identifier |
string |
No description. |
variables |
HostVariable[] |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
groupsRequired
- Type: {[ key: string ]: HostGroup}
hostsRequired
- Type: Host[]
identifierRequired
- Type: string
variablesRequired
- Type: HostVariable[]
HostVariable
- Implements: IVariable
Initializers
import { HostVariable } from 'cdk-ans'
new HostVariable(scope: Construct, id: string, props: HostVariableProps)
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
HostVariableProps |
No description. |
scopeRequired
- Type: constructs.Construct
idRequired
- Type: string
propsRequired
- Type: HostVariableProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
asRaw |
Returns the variable as a raw string. |
asVariable |
Returns the variable as an ansible variable string {{ variable }}. |
index |
No description. |
property |
No description. |
toString
Returns a string representation of this construct.
asRaw
Returns the variable as a raw string.
asVariable
Returns the variable as an ansible variable string {{ variable }}.
index
_Required
- Type: number
property
_Required
- Type: string
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
name |
string |
No description. |
value |
string |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
nameRequired
- Type: string
valueRequired
- Type: string
Inventory
Represents an Ansible inventory.
Initializers
import { Inventory } from 'cdk-ans'
new Inventory(scope: Construct, name: string, props: InventoryProps)
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
InventoryProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: InventoryProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toString
Returns a string representation of this construct.
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
groups |
HostGroup[] |
No description. |
hosts |
Host[] |
No description. |
name |
string |
No description. |
variables |
HostVariable[] |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
groupsRequired
- Type: HostGroup[]
hostsRequired
- Type: Host[]
nameRequired
- Type: string
variablesRequired
- Type: HostVariable[]
Play
- Implements: IPlayChainable
A play is a collection of tasks and metadata to execute on a set of hosts.
Plays are chainable together to create a playbook
https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html#play
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
PlayProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: PlayProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toJson |
No description. |
flattenHosts |
No description. |
next |
No description. |
toString
Returns a string representation of this construct.
toJson
flattenHosts
next
nextRequired
- Type: IPlayChainable
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
chain |
Step[] |
No description. |
name |
string |
No description. |
hosts |
IHostIdentifiable[] |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
factPath |
string |
No description. |
forceHandlers |
boolean |
No description. |
gatherFacts |
boolean |
No description. |
gatherSubset |
string |
No description. |
gatherTimeout |
number |
No description. |
handlers |
Handler[] |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
maxFailPercentage |
number |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
order |
PlayHostOrder |
No description. |
port |
number |
No description. |
postTasks |
TaskDefinition |
No description. |
preTasks |
TaskDefinition |
No description. |
remoteUser |
string |
No description. |
roles |
RoleDefinition |
No description. |
runOnce |
boolean |
No description. |
serial |
number |
No description. |
strategy |
string |
No description. |
tags |
string[] |
No description. |
tasks |
TaskDefinition |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
varPrompt |
string[] |
No description. |
vars |
{[ key: string ]: any} |
No description. |
varsFiles |
string[] |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
chainRequired
- Type: Step[]
nameRequired
- Type: string
hostsRequired
- Type: IHostIdentifiable[]
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
factPathOptional
- Type: string
forceHandlersOptional
- Type: boolean
gatherFactsOptional
- Type: boolean
gatherSubsetOptional
- Type: string
gatherTimeoutOptional
- Type: number
handlersOptional
- Type: Handler[]
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
maxFailPercentageOptional
- Type: number
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
orderOptional
- Type: PlayHostOrder
portOptional
- Type: number
postTasksOptional
- Type: TaskDefinition
preTasksOptional
- Type: TaskDefinition
remoteUserOptional
- Type: string
rolesOptional
- Type: RoleDefinition
runOnceOptional
- Type: boolean
serialOptional
- Type: number
strategyOptional
- Type: string
tagsOptional
- Type: string[]
tasksOptional
- Type: TaskDefinition
throttleOptional
- Type: number
timeoutOptional
- Type: number
varPromptOptional
- Type: string[]
varsOptional
- Type: {[ key: string ]: any}
varsFilesOptional
- Type: string[]
Playbook
Initializers
import { Playbook } from 'cdk-ans'
new Playbook(scope: Construct, name: string, props: PlaybookProps)
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
PlaybookProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: PlaybookProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toJson |
No description. |
toString
Returns a string representation of this construct.
toJson
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
name |
string |
No description. |
playDefinition |
PlayDefinition |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
nameRequired
- Type: string
playDefinitionRequired
- Type: PlayDefinition
Project
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
ProjectProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsOptional
- Type: ProjectProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toString
Returns a string representation of this construct.
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
inventories |
Inventory[] |
No description. |
name |
string |
No description. |
playbooks |
Playbook[] |
No description. |
roles |
Role[] |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
inventoriesRequired
- Type: Inventory[]
nameRequired
- Type: string
playbooksRequired
- Type: Playbook[]
rolesRequired
- Type: Role[]
Resource
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toString
Returns a string representation of this construct.
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
nodeRequired
- Type: constructs.Node
The tree node.
Role
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
RoleProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: RoleProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
addDefaultVariables |
No description. |
addFile |
No description. |
addHandler |
No description. |
addTask |
No description. |
addTemplate |
No description. |
addVariables |
No description. |
toString
Returns a string representation of this construct.
addDefaultVariables
variablesRequired
- Type: {[ key: string ]: any}
addFile
fileRequired
- Type: File
addHandler
handlerRequired
- Type: Handler
addTask
taskRequired
- Type: Task
addTemplate
templateRequired
- Type: TemplateFile
addVariables
variablesRequired
- Type: {[ key: string ]: any}
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
defaults |
{[ key: string ]: any} |
No description. |
files |
File[] |
No description. |
handlers |
Handler[] |
No description. |
name |
string |
No description. |
tasks |
TaskDefinition |
No description. |
templates |
TemplateFile[] |
No description. |
variables |
{[ key: string ]: any} |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
defaultsRequired
- Type: {[ key: string ]: any}
filesRequired
- Type: File[]
handlersRequired
- Type: Handler[]
nameRequired
- Type: string
tasksRequired
- Type: TaskDefinition
templatesRequired
- Type: TemplateFile[]
variablesRequired
- Type: {[ key: string ]: any}
RoleTarget
- Implements: IRoleChainable
Represents a targetted role for use within a playbook.
https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html#role
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toJson |
No description. |
next |
No description. |
toString
Returns a string representation of this construct.
toJson
next
nextRequired
- Type: IRoleChainable
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
fromRole |
Creates a role target from a role. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
fromRole
import { RoleTarget } from 'cdk-ans'
RoleTarget.fromRole(scope: Construct, id: string, role: Role, props?: RoleTargetProps)
Creates a role target from a role.
scopeRequired
- Type: constructs.Construct
idRequired
- Type: string
roleRequired
- Type: Role
propsOptional
- Type: RoleTargetProps
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
chain |
Step[] |
No description. |
name |
string |
No description. |
role |
Role |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
delegateFacts |
boolean |
No description. |
delegateTo |
string |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
when |
Conditional |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
chainRequired
- Type: Step[]
nameRequired
- Type: string
roleRequired
- Type: Role
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
delegateFactsOptional
- Type: boolean
delegateToOptional
- Type: string
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
whenOptional
- Type: Conditional
Step
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
StepProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: StepProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toJson |
No description. |
toString
Returns a string representation of this construct.
toJson
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
chain |
Step[] |
No description. |
name |
string |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
chainRequired
- Type: Step[]
nameRequired
- Type: string
Task
- Implements: ITaskChainable
Initializers
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
TaskProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: TaskProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toJson |
No description. |
next |
No description. |
toString
Returns a string representation of this construct.
toJson
next
nextRequired
- Type: ITaskChainable
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
chain |
Step[] |
No description. |
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
action |
TaskAction |
No description. |
args |
{[ key: string ]: any} |
No description. |
async |
number |
No description. |
changedWhen |
string |
No description. |
delay |
number |
No description. |
delegateFacts |
boolean |
No description. |
delegateTo |
string |
No description. |
failedWhen |
Conditional[] |
No description. |
localAction |
string |
No description. |
loop |
string | string[] |
No description. |
loopControl |
{[ key: string ]: any} |
No description. |
notify |
Handler[] |
No description. |
poll |
number |
No description. |
register |
string |
No description. |
retries |
number |
No description. |
until |
string |
No description. |
when |
Conditional |
No description. |
with |
string[] |
No description. |
withItems |
{[ key: string ]: any}[] |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
chainRequired
- Type: Step[]
nameRequired
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
actionRequired
- Type: TaskAction
argsOptional
- Type: {[ key: string ]: any}
asyncOptional
- Type: number
changedWhenOptional
- Type: string
delayOptional
- Type: number
delegateFactsOptional
- Type: boolean
delegateToOptional
- Type: string
failedWhenOptional
- Type: Conditional[]
localActionOptional
- Type: string
loopOptional
- Type: string | string[]
loopControlOptional
- Type: {[ key: string ]: any}
notifyOptional
- Type: Handler[]
pollOptional
- Type: number
registerOptional
- Type: string
retriesOptional
- Type: number
untilOptional
- Type: string
whenOptional
- Type: Conditional
withOptional
- Type: string[]
withItemsOptional
- Type: {[ key: string ]: any}[]
TaskBase
Initializers
import { TaskBase } from 'cdk-ans'
new TaskBase(scope: Construct, name: string, props: TaskBaseProps)
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
TaskBaseProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: TaskBaseProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toJson |
No description. |
toString
Returns a string representation of this construct.
toJson
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
chain |
Step[] |
No description. |
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
chainRequired
- Type: Step[]
nameRequired
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
TemplateFile
Initializers
import { TemplateFile } from 'cdk-ans'
new TemplateFile(scope: Construct, name: string, props: TemplateFileProps)
| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
TemplateFileProps |
No description. |
scopeRequired
- Type: constructs.Construct
nameRequired
- Type: string
propsRequired
- Type: TemplateFileProps
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
toString
Returns a string representation of this construct.
Static Functions
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isConstruct
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
- Type: any
Any object.
Properties
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
fileName |
string |
No description. |
path |
string |
No description. |
nodeRequired
- Type: constructs.Node
The tree node.
fileNameRequired
- Type: string
pathRequired
- Type: string
Structs
AppProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
outdir |
string |
No description. |
synthesizer |
ISynthesizer |
No description. |
outdirOptional
- Type: string
- Default: CDKANS_OUTDIR if defined, otherwise "dist"
synthesizerOptional
- Type: ISynthesizer
BlockProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
tasks |
TaskDefinition |
No description. |
always |
TaskDefinition |
No description. |
delegateFacts |
boolean |
No description. |
delegateTo |
string |
No description. |
notify |
Handler[] |
No description. |
rescue |
TaskDefinition |
No description. |
when |
Conditional |
No description. |
nameOptional
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
tasksRequired
- Type: TaskDefinition
alwaysOptional
- Type: TaskDefinition
delegateFactsOptional
- Type: boolean
delegateToOptional
- Type: string
notifyOptional
- Type: Handler[]
rescueOptional
- Type: TaskDefinition
whenOptional
- Type: Conditional
FileProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
path |
string |
No description. |
fileName |
string |
No description. |
pathRequired
- Type: string
fileNameOptional
- Type: string
HandlerProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
action |
TaskAction |
No description. |
listen |
string |
No description. |
nameOptional
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
actionRequired
- Type: TaskAction
listenOptional
- Type: string
HostGroupProps
Properties for a host group.
Initializer
Properties
| Name | Type | Description |
|---|---|---|
groups |
HostGroup[] |
Subgroups of this group. |
hosts |
Host[] |
Hosts in this group. |
identifier |
string |
The identifier of the group. |
variables |
HostVariable[] |
Variables that will be set on all hosts in this group. |
groupsOptional
- Type: HostGroup[]
Subgroups of this group.
hostsOptional
- Type: Host[]
Hosts in this group.
identifierOptional
- Type: string
The identifier of the group.
variablesOptional
- Type: HostVariable[]
Variables that will be set on all hosts in this group.
HostProps
Configuration for a host in an Ansible inventory.
Initializer
Properties
| Name | Type | Description |
|---|---|---|
host |
string |
The hostname or IP address of the host. |
ansibleBecome |
boolean |
Whether to become privileged. |
ansiblePassword |
string |
The password to use to connect to the host. |
ansiblePort |
number |
The port to connect to on the remote host. |
ansibleUser |
string |
The user to connect to the host as. |
connectionType |
AnsibleConnection |
The connection type to use to connect to the host. |
identifier |
string |
The identifier of the host on synthesis. |
variables |
HostVariable[] |
Additional variables to set for the host. |
hostRequired
- Type: string
The hostname or IP address of the host.
ansibleBecomeOptional
- Type: boolean
- Default: no become
Whether to become privileged.
https://docs.ansible.com/ansible/latest/user_guide/become.html
ansiblePasswordOptional
- Type: string
- Default: no password
The password to use to connect to the host.
https://docs.ansible.com/ansible/latest/user_guide/connection_details.html#ssh-connection-variables
ansiblePortOptional
- Type: number
- Default: the default port for the connection type
The port to connect to on the remote host.
https://docs.ansible.com/ansible/latest/user_guide/connection_details.html#connection-types
ansibleUserOptional
- Type: string
The user to connect to the host as.
connectionTypeOptional
- Type: AnsibleConnection
- Default: AnsibleConnection.SSH
The connection type to use to connect to the host.
identifierOptional
- Type: string
- Default: the construct's id
The identifier of the host on synthesis.
variablesOptional
- Type: HostVariable[]
Additional variables to set for the host.
HostVariableProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
value |
string |
No description. |
nameRequired
- Type: string
valueRequired
- Type: string
InventoryProps
Properties for an Ansible inventory.
Initializer
Properties
| Name | Type | Description |
|---|---|---|
groups |
HostGroup[] |
Groups in the inventory. |
hosts |
Host[] |
Hosts in the inventory. |
name |
string |
The name of the inventory. |
variables |
HostVariable[] |
Inventory level variables that will be set on all hosts. |
groupsOptional
- Type: HostGroup[]
Groups in the inventory.
hostsOptional
- Type: Host[]
Hosts in the inventory.
Hosts added here are part of the top level "all" group.
nameOptional
- Type: string
- Default: the name of the construct.
The name of the inventory.
variablesOptional
- Type: HostVariable[]
Inventory level variables that will be set on all hosts.
PlaybookProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
playDefinition |
PlayDefinition |
No description. |
name |
string |
No description. |
playDefinitionRequired
- Type: PlayDefinition
nameOptional
- Type: string
PlayProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
hosts |
IHostIdentifiable[] |
No description. |
factPath |
string |
No description. |
forceHandlers |
boolean |
No description. |
gatherFacts |
boolean |
No description. |
gatherSubset |
string |
No description. |
gatherTimeout |
number |
No description. |
handlers |
Handler[] |
No description. |
maxFailPercentage |
number |
No description. |
order |
PlayHostOrder |
No description. |
postTasks |
TaskDefinition |
No description. |
preTasks |
TaskDefinition |
No description. |
roles |
RoleDefinition |
No description. |
serial |
number |
No description. |
strategy |
string |
No description. |
tasks |
TaskDefinition |
No description. |
varPrompt |
string[] |
No description. |
varsFiles |
string[] |
No description. |
nameOptional
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
hostsRequired
- Type: IHostIdentifiable[]
factPathOptional
- Type: string
forceHandlersOptional
- Type: boolean
gatherFactsOptional
- Type: boolean
gatherSubsetOptional
- Type: string
gatherTimeoutOptional
- Type: number
handlersOptional
- Type: Handler[]
maxFailPercentageOptional
- Type: number
orderOptional
- Type: PlayHostOrder
postTasksOptional
- Type: TaskDefinition
preTasksOptional
- Type: TaskDefinition
rolesOptional
- Type: RoleDefinition
serialOptional
- Type: number
strategyOptional
- Type: string
tasksOptional
- Type: TaskDefinition
varPromptOptional
- Type: string[]
varsFilesOptional
- Type: string[]
ProjectProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
nameOptional
- Type: string
ProjectSynthesizerOptions
Options on how the project synthezier should behave when synthesizing a project.
Initializer
import { ProjectSynthesizerOptions } from 'cdk-ans'
const projectSynthesizerOptions: ProjectSynthesizerOptions = { ... }
Properties
| Name | Type | Description |
|---|---|---|
inventoryOptions |
SynthesizeInventoryOptions |
Options on how to synthesize inventories. |
playbookOptions |
SynthesizePlaybookOptions |
Options on how to synthesize playbooks. |
roleOptions |
SynthesizeRoleOptions |
Options on how to synthesize roles. |
inventoryOptionsOptional
Options on how to synthesize inventories.
playbookOptionsOptional
Options on how to synthesize playbooks.
roleOptionsOptional
- Type: SynthesizeRoleOptions
Options on how to synthesize roles.
RoleProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
tasks |
TaskDefinition |
No description. |
defaults |
{[ key: string ]: any} |
No description. |
files |
File[] |
No description. |
handlers |
Handler[] |
No description. |
name |
string |
No description. |
templates |
TemplateFile[] |
No description. |
variables |
{[ key: string ]: any} |
No description. |
tasksRequired
- Type: TaskDefinition
defaultsOptional
- Type: {[ key: string ]: any}
filesOptional
- Type: File[]
handlersOptional
- Type: Handler[]
nameOptional
- Type: string
templatesOptional
- Type: TemplateFile[]
variablesOptional
- Type: {[ key: string ]: any}
RoleTargetProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
delegateFacts |
boolean |
No description. |
delegateTo |
string |
No description. |
when |
Conditional |
No description. |
nameOptional
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
delegateFactsOptional
- Type: boolean
delegateToOptional
- Type: string
whenOptional
- Type: Conditional
StepProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
nameOptional
- Type: string
SynthesizeInventoryOptions
Initializer
import { SynthesizeInventoryOptions } from 'cdk-ans'
const synthesizeInventoryOptions: SynthesizeInventoryOptions = { ... }
Properties
| Name | Type | Description |
|---|---|---|
inventoryOutputType |
InventoryOutputType |
How to organzie inventory output. |
outDir |
string |
Where synthezied roles should be saved. |
inventoryOutputTypeOptional
- Type: InventoryOutputType
- Default: InventoryOutputType.SINGLE_FILE
How to organzie inventory output.
outDirOptional
- Type: string
- Default: inventories
Where synthezied roles should be saved.
SynthesizePlaybookOptions
Initializer
import { SynthesizePlaybookOptions } from 'cdk-ans'
const synthesizePlaybookOptions: SynthesizePlaybookOptions = { ... }
Properties
| Name | Type | Description |
|---|---|---|
outDir |
string |
Where synthezied playbooks should be saved. |
playbookOutputType |
PlaybookOutputType |
How to organzie playbook output. |
outDirOptional
- Type: string
- Default: projects
Where synthezied playbooks should be saved.
Only used if playbookOutputType is PlaybookOutputType.IN_DIRECTORY
playbookOutputTypeOptional
- Type: PlaybookOutputType
- Default: PlaybookOutputType.IN_ROOT
How to organzie playbook output.
SynthesizeRoleOptions
Initializer
import { SynthesizeRoleOptions } from 'cdk-ans'
const synthesizeRoleOptions: SynthesizeRoleOptions = { ... }
Properties
| Name | Type | Description |
|---|---|---|
outDir |
string |
Where synthezied roles should be saved. |
roleOutputType |
RoleOutputType |
How to organzie role output. |
outDirOptional
- Type: string
- Default: roles
Where synthezied roles should be saved.
roleOutputTypeOptional
- Type: RoleOutputType
- Default: RoleOutputType.STANDARD
How to organzie role output.
TaskActionProps
An empty interface TaskActionProps extends from This is a placeholder incase there are base settings ever needed for an Action.
Initializer
TaskBaseProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
nameOptional
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
TaskProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
anyErrorsFatal |
boolean |
No description. |
become |
boolean |
No description. |
becomeExe |
string |
No description. |
becomeFlags |
string |
No description. |
becomeMethod |
string |
No description. |
becomeUser |
string |
No description. |
checkMode |
boolean |
No description. |
collections |
string[] |
No description. |
connection |
string |
No description. |
debugger |
boolean |
No description. |
diff |
boolean |
No description. |
environment |
{[ key: string ]: any} |
No description. |
ignoreErrors |
boolean |
No description. |
ignoreUnreachable |
boolean |
No description. |
moduleDefaults |
{[ key: string ]: any} |
No description. |
noLog |
boolean |
No description. |
port |
number |
No description. |
remoteUser |
string |
No description. |
runOnce |
boolean |
No description. |
tags |
string[] |
No description. |
throttle |
number |
No description. |
timeout |
number |
No description. |
vars |
{[ key: string ]: any} |
No description. |
action |
TaskAction |
No description. |
args |
{[ key: string ]: any} |
No description. |
async |
number |
No description. |
changedWhen |
string |
No description. |
delay |
number |
No description. |
delegateFacts |
boolean |
No description. |
delegateTo |
string |
No description. |
failedWhen |
Conditional[] |
No description. |
localAction |
string |
No description. |
loop |
string | string[] |
No description. |
loopControl |
{[ key: string ]: any} |
No description. |
notify |
Handler[] |
No description. |
poll |
number |
No description. |
register |
string |
No description. |
retries |
number |
No description. |
until |
string |
No description. |
when |
Conditional |
No description. |
with |
string[] |
No description. |
withItems |
{[ key: string ]: any}[] |
No description. |
nameOptional
- Type: string
anyErrorsFatalOptional
- Type: boolean
becomeOptional
- Type: boolean
becomeExeOptional
- Type: string
becomeFlagsOptional
- Type: string
becomeMethodOptional
- Type: string
becomeUserOptional
- Type: string
checkModeOptional
- Type: boolean
collectionsOptional
- Type: string[]
connectionOptional
- Type: string
debuggerOptional
- Type: boolean
diffOptional
- Type: boolean
environmentOptional
- Type: {[ key: string ]: any}
ignoreErrorsOptional
- Type: boolean
ignoreUnreachableOptional
- Type: boolean
moduleDefaultsOptional
- Type: {[ key: string ]: any}
noLogOptional
- Type: boolean
portOptional
- Type: number
remoteUserOptional
- Type: string
runOnceOptional
- Type: boolean
tagsOptional
- Type: string[]
throttleOptional
- Type: number
timeoutOptional
- Type: number
varsOptional
- Type: {[ key: string ]: any}
actionRequired
- Type: TaskAction
argsOptional
- Type: {[ key: string ]: any}
asyncOptional
- Type: number
changedWhenOptional
- Type: string
delayOptional
- Type: number
delegateFactsOptional
- Type: boolean
delegateToOptional
- Type: string
failedWhenOptional
- Type: Conditional[]
localActionOptional
- Type: string
loopOptional
- Type: string | string[]
loopControlOptional
- Type: {[ key: string ]: any}
notifyOptional
- Type: Handler[]
pollOptional
- Type: number
registerOptional
- Type: string
retriesOptional
- Type: number
untilOptional
- Type: string
whenOptional
- Type: Conditional
withOptional
- Type: string[]
withItemsOptional
- Type: {[ key: string ]: any}[]
TemplateFileProps
Initializer
Properties
| Name | Type | Description |
|---|---|---|
path |
string |
No description. |
fileName |
string |
No description. |
pathRequired
- Type: string
fileNameOptional
- Type: string
Classes
AllHosts
- Implements: IHostIdentifiable
A special host identifier that contains all hosts.
Used from the Hosts.All class
Initializers
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
identifier |
string |
No description. |
identifierRequired
- Type: string
AnyVariable
A variable that can be used to access any type of variable.
Used by returns of property and index methods of other variables.
Initializers
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsOptional
- Type: string[]
Methods
| Name | Description |
|---|---|
asRaw |
Returns the variable as a raw string. |
asVariable |
Returns the variable as an ansible variable string {{ variable }}. |
index |
No description. |
property |
No description. |
asRaw
Returns the variable as a raw string.
asVariable
Returns the variable as an ansible variable string {{ variable }}.
index
indexRequired
- Type: number
property
keyRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
of |
No description. |
of
nameRequired
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsRequired
- Type: string[]
BaseVariable
- Implements: IVariable
The base variable class that all other variables extend from.
Initializers
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsOptional
- Type: string[]
Methods
| Name | Description |
|---|---|
asRaw |
Returns the variable as a raw string. |
asVariable |
Returns the variable as an ansible variable string {{ variable }}. |
index |
No description. |
property |
No description. |
asRaw
Returns the variable as a raw string.
asVariable
Returns the variable as an ansible variable string {{ variable }}.
index
indexRequired
- Type: number
property
nameRequired
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsRequired
- Type: string[]
Conditional
Methods
| Name | Description |
|---|---|
format |
No description. |
format
Static Functions
| Name | Description |
|---|---|
and |
No description. |
bool |
No description. |
equal |
No description. |
greaterThan |
No description. |
greaterThanOrEqual |
No description. |
in |
No description. |
is |
No description. |
isNot |
No description. |
lessThan |
No description. |
lessThanOrEqual |
No description. |
notBool |
No description. |
notEqual |
No description. |
notIn |
No description. |
or |
No description. |
and
condition1Required
- Type: any
condition2Required
- Type: any
bool
boolRequired
- Type: any
equal
var1Required
- Type: any
var2Required
- Type: any
greaterThan
var1Required
- Type: any
var2Required
- Type: any
greaterThanOrEqual
var1Required
- Type: any
var2Required
- Type: any
in
var1Required
- Type: any
var2Required
- Type: any
is
var1Required
- Type: any
isEvalRequired
- Type: IsEvaluation
isNot
var1Required
- Type: any
isEvalRequired
- Type: IsEvaluation
lessThan
var1Required
- Type: any
var2Required
- Type: any
lessThanOrEqual
var1Required
- Type: any
var2Required
- Type: any
notBool
boolRequired
- Type: any
notEqual
var1Required
- Type: any
var2Required
- Type: any
notIn
var1Required
- Type: any
var2Required
- Type: any
or
condition1Required
- Type: any
condition2Required
- Type: any
Properties
| Name | Type | Description |
|---|---|---|
mode |
ConditionalEvaluation |
No description. |
var1 |
any |
No description. |
var2 |
any |
No description. |
modeRequired
- Type: ConditionalEvaluation
var1Required
- Type: any
var2Optional
- Type: any
DependencyGraph
Represents the dependency graph for a given Node.
This graph includes the dependency relationships between all nodes in the node (construct) sub-tree who's root is this Node.
Note that this means that lonely nodes (no dependencies and no dependants) are also included in this graph as childless children of the root node of the graph.
The graph does not include cross-scope dependencies. That is, if a child on the current scope depends on a node from a different scope, that relationship is not represented in this graph.
Initializers
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
No description. |
nodeRequired
- Type: constructs.Node
Methods
| Name | Description |
|---|---|
topology |
No description. |
topology
Properties
| Name | Type | Description |
|---|---|---|
root |
DependencyVertex |
Returns the root of the graph. |
rootRequired
- Type: DependencyVertex
Returns the root of the graph.
Note that this vertex will always have null as its .value since it is an artifical root
that binds all the connected spaces of the graph.
DependencyVertex
Represents a vertex in the graph.
The value of each vertex is an IConstruct that is accessible via the .value getter.
Initializers
| Name | Type | Description |
|---|---|---|
value |
constructs.IConstruct |
No description. |
valueOptional
- Type: constructs.IConstruct
Methods
| Name | Description |
|---|---|
addChild |
Adds a vertex as a dependency of the current node. |
topology |
Returns a topologically sorted array of the constructs in the sub-graph. |
addChild
Adds a vertex as a dependency of the current node.
Also updates the parents of dep, so that it contains this node as a parent.
This operation will fail in case it creates a cycle in the graph.
depRequired
- Type: DependencyVertex
The dependency.
topology
Returns a topologically sorted array of the constructs in the sub-graph.
Properties
| Name | Type | Description |
|---|---|---|
inbound |
DependencyVertex[] |
Returns the parents of the vertex (i.e dependants). |
outbound |
DependencyVertex[] |
Returns the children of the vertex (i.e dependencies). |
value |
constructs.IConstruct |
Returns the IConstruct this graph vertex represents. |
inboundRequired
- Type: DependencyVertex[]
Returns the parents of the vertex (i.e dependants).
outboundRequired
- Type: DependencyVertex[]
Returns the children of the vertex (i.e dependencies).
valueOptional
- Type: constructs.IConstruct
Returns the IConstruct this graph vertex represents.
null in case this is the root of the graph.
DictionaryVariable
A variable that represents a dictionary (object) This can be used to access properties of the dictionary.
Initializers
import { DictionaryVariable } from 'cdk-ans'
new DictionaryVariable(name: string, parents?: string[])
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsOptional
- Type: string[]
Methods
| Name | Description |
|---|---|
asRaw |
Returns the variable as a raw string. |
asVariable |
Returns the variable as an ansible variable string {{ variable }}. |
index |
No description. |
property |
No description. |
asRaw
Returns the variable as a raw string.
asVariable
Returns the variable as an ansible variable string {{ variable }}.
index
_Required
- Type: number
property
keyRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
of |
No description. |
of
nameRequired
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsRequired
- Type: string[]
Hosts
A special class to allow for specifying all hosts in a playbook.
Initializers
| Name | Type | Description |
|---|---|---|
Constants
| Name | Type | Description |
|---|---|---|
All |
AllHosts[] |
No description. |
AllRequired
- Type: AllHosts[]
ListVariable
A variable that can be used to access a indexed sub variables.
Initializers
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsOptional
- Type: string[]
Methods
| Name | Description |
|---|---|
asRaw |
Returns the variable as a raw string. |
asVariable |
Returns the variable as an ansible variable string {{ variable }}. |
index |
No description. |
property |
No description. |
asRaw
Returns the variable as a raw string.
asVariable
Returns the variable as an ansible variable string {{ variable }}.
index
indexRequired
- Type: number
property
_Required
- Type: string
Static Functions
| Name | Description |
|---|---|
of |
No description. |
of
nameRequired
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsRequired
- Type: string[]
MagicVariable
Ansible magic variable.
A class used to format anisble variables.
https://docs.ansible.com/ansible/latest/reference_appendices/special_variables.html
Initializers
| Name | Type | Description |
|---|---|---|
Constants
| Name | Type | Description |
|---|---|---|
AnsibleBecomeUser |
SimpleVariable |
The user Ansible ‘becomes’ after using privilege escalation. |
AnsibleCheckMode |
SimpleVariable |
Boolean that indicates if we are in check mode or not. |
AnsibleCheckModeEnabled |
SimpleVariable |
The names of the roles currently imported into the current play as dependencies of other plays. |
AnsibleCollectionName |
SimpleVariable |
The name of the collection the task that is executing is a part of. |
AnsibleConfigFile |
SimpleVariable |
The full path of used Ansible configuration file. |
AnsibleConnection |
SimpleVariable |
The connection plugin actually used for the task on the target host. |
AnsibleDiffMode |
SimpleVariable |
Boolean that indicates if we are in diff mode or not. |
AnsibleFacts |
DictionaryVariable |
Contains any facts gathered or cached for the inventory_hostname Facts are normally gathered by the setup module automatically in a play, but any module can return facts. |
AnsibleForks |
SimpleVariable |
Integer reflecting the number of maximum forks available to this run. |
AnsibleHost |
SimpleVariable |
The ip/name of the target host to use instead of inventory_hostname. |
AnsibleIndexVar |
SimpleVariable |
The name of the value provided to loop_control.index_var. Added in 2.9. |
AnsibleInventorySources |
ListVariable |
List of sources used as inventory. |
AnsibleLimit |
SimpleVariable |
Contents of the --limit CLI option for the current execution of Ansible. |
AnsibleLocal |
DictionaryVariable |
Contains any ‘local facts’ gathered or cached for the inventory_hostname. |
AnsibleLoop |
DictionaryVariable |
A dictionary/map containing extended loop information when enabled through loop_control.extended. |
AnsibleLoopVar |
SimpleVariable |
The name of the value provided to loop_control.loop_var. Added in 2.8. |
AnsibleParentRoleNames |
ListVariable |
When the current role is being executed by means of an include_role or import_role action, this variable contains a list of all parent roles, with the most recent role (in other words, the role that included/imported this role) being the first item in the list. |
AnsibleParentRolePath |
SimpleVariable |
When the current role is being executed by means of an include_role or import_role action, this variable contains a list of all parent roles paths, with the most recent role (in other words, the role that included/imported this role) being the first item in the list. |
AnsiblePlayBatch |
ListVariable |
List of active hosts in the current play run limited by the serial, aka ‘batch’. |
AnsiblePlaybookPython |
SimpleVariable |
The path to the python interpreter being used by Ansible on the controller. |
AnsiblePlayHosts |
ListVariable |
List of hosts in the current play run, not limited by the serial. |
AnsiblePlayHostsAll |
ListVariable |
List of all the hosts that were targeted by the play. |
AnsiblePlayName |
SimpleVariable |
The name of the currently executed play. |
AnsiblePlayRoleNames |
ListVariable |
The names of the roles currently imported into the current play. |
AnsiblePort |
SimpleVariable |
The port used to connect to the target host. |
AnsiblePythonInterpreter |
SimpleVariable |
The path to the Python executable Ansible should use on the target host. |
AnsibleRoleName |
SimpleVariable |
The fully qualified collection role name, in the format of namespace.collection.role_name. |
AnsibleRoleNames |
ListVariable |
The names of the roles currently imported into the current play, or roles referenced as dependencies of the roles imported into the current play. |
AnsibleRunTags |
ListVariable |
Contents of the --tags CLI option, which specifies which tags will be included for the current run. |
AnsibleSearchPath |
SimpleVariable |
Current search path for action plugins and lookups, in other words, where we search for relative paths when you do template: src=myfile. |
AnsibleSkipTags |
ListVariable |
Contents of the --skip-tags CLI option, which specifies which tags will be skipped for the current run. |
AnsibleUser |
SimpleVariable |
The user Ansible ‘logs in’ as. |
AnsibleVerbosity |
SimpleVariable |
Current verbosity setting for Ansible. |
AnsibleVersion |
SimpleVariable |
Dictionary/map that contains information about the current running version of ansible, it has the following keys: full, major, minor, revision and string. |
GroupNames |
ListVariable |
List of groups the current host is part of. |
Groups |
DictionaryVariable |
A dictionary/map with all the groups in inventory and each group has the list of hosts that belong to it. |
HostVars |
DictionaryVariable |
A dictionary/map with all the hosts in inventory and variables assigned to them. |
InventoryDir |
SimpleVariable |
The directory of the inventory source in which the inventory_hostname was first defined. |
InventoryFile |
SimpleVariable |
The file name of the inventory source in which the inventory_hostname was first defined. |
InventoryHostname |
SimpleVariable |
The inventory name for the ‘current’ host being iterated over in the play. |
InventoryHostnameShort |
SimpleVariable |
The short version of inventory_hostname. |
Item |
AnyVariable |
A special variable to quickly implement an item variable in a loop. |
Omit |
SimpleVariable |
Special variable that allows you to ‘omit’ an option in a task, for example - user: name=bob home={{ bobs_home\|default(omit) }}. |
PlaybookDir |
SimpleVariable |
The path to the directory of the current playbook being executed. |
RoleName |
SimpleVariable |
The name of the role currently being executed. |
RolePath |
SimpleVariable |
The path to the dir of the currently running role. |
AnsibleBecomeUserRequired
- Type: SimpleVariable
The user Ansible ‘becomes’ after using privilege escalation.
This must be available to the ‘login user’.
AnsibleCheckModeRequired
- Type: SimpleVariable
Boolean that indicates if we are in check mode or not.
AnsibleCheckModeEnabledRequired
- Type: SimpleVariable
The names of the roles currently imported into the current play as dependencies of other plays.
AnsibleCollectionNameRequired
- Type: SimpleVariable
The name of the collection the task that is executing is a part of.
In the format of namespace.collection.
AnsibleConfigFileRequired
- Type: SimpleVariable
The full path of used Ansible configuration file.
AnsibleConnectionRequired
- Type: SimpleVariable
The connection plugin actually used for the task on the target host.
AnsibleDiffModeRequired
- Type: SimpleVariable
Boolean that indicates if we are in diff mode or not.
AnsibleFactsRequired
- Type: DictionaryVariable
Contains any facts gathered or cached for the inventory_hostname Facts are normally gathered by the setup module automatically in a play, but any module can return facts.
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/setup_module.html
AnsibleForksRequired
- Type: SimpleVariable
Integer reflecting the number of maximum forks available to this run.
AnsibleHostRequired
- Type: SimpleVariable
The ip/name of the target host to use instead of inventory_hostname.
AnsibleIndexVarRequired
- Type: SimpleVariable
The name of the value provided to loop_control.index_var. Added in 2.9.
AnsibleInventorySourcesRequired
- Type: ListVariable
List of sources used as inventory.
AnsibleLimitRequired
- Type: SimpleVariable
Contents of the --limit CLI option for the current execution of Ansible.
AnsibleLocalRequired
- Type: DictionaryVariable
Contains any ‘local facts’ gathered or cached for the inventory_hostname.
The keys available depend on the custom facts created. See the setup module and facts.d or local facts for more details.
AnsibleLoopRequired
- Type: DictionaryVariable
A dictionary/map containing extended loop information when enabled through loop_control.extended.
AnsibleLoopVarRequired
- Type: SimpleVariable
The name of the value provided to loop_control.loop_var. Added in 2.8.
AnsibleParentRoleNamesRequired
- Type: ListVariable
When the current role is being executed by means of an include_role or import_role action, this variable contains a list of all parent roles, with the most recent role (in other words, the role that included/imported this role) being the first item in the list.
When multiple inclusions occur, this list lists the last role (in other words, the role that included this role) as the first item in the list. It is also possible that a specific role exists more than once in this list.
For example: When role A includes role B, inside role B, ansible_parent_role_names will equal to ['A']. If role B then includes role C, the list becomes ['B', 'A'].
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/import_role_module.html
AnsibleParentRolePathRequired
- Type: SimpleVariable
When the current role is being executed by means of an include_role or import_role action, this variable contains a list of all parent roles paths, with the most recent role (in other words, the role that included/imported this role) being the first item in the list.
Please refer to ansible_parent_role_names for the order of items in this list.
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/import_role_module.html
AnsiblePlayBatchRequired
- Type: ListVariable
List of active hosts in the current play run limited by the serial, aka ‘batch’.
Failed/Unreachable hosts are not considered ‘active’.
AnsiblePlaybookPythonRequired
- Type: SimpleVariable
The path to the python interpreter being used by Ansible on the controller.
AnsiblePlayHostsRequired
- Type: ListVariable
List of hosts in the current play run, not limited by the serial.
Failed/Unreachable hosts are excluded from this list.
AnsiblePlayHostsAllRequired
- Type: ListVariable
List of all the hosts that were targeted by the play.
AnsiblePlayNameRequired
- Type: SimpleVariable
The name of the currently executed play.
Added in 2.8. (name attribute of the play, not file name of the playbook.)
AnsiblePlayRoleNamesRequired
- Type: ListVariable
The names of the roles currently imported into the current play.
This list does not contain the role names that are implicitly included through dependencies.
AnsiblePortRequired
- Type: SimpleVariable
The port used to connect to the target host.
AnsiblePythonInterpreterRequired
- Type: SimpleVariable
The path to the Python executable Ansible should use on the target host.
https://docs.ansible.com/ansible/latest/reference_appendices/interpreter_discovery.html
AnsibleRoleNameRequired
- Type: SimpleVariable
The fully qualified collection role name, in the format of namespace.collection.role_name.
AnsibleRoleNamesRequired
- Type: ListVariable
The names of the roles currently imported into the current play, or roles referenced as dependencies of the roles imported into the current play.
AnsibleRunTagsRequired
- Type: ListVariable
Contents of the --tags CLI option, which specifies which tags will be included for the current run.
Note that if --tags is not passed, this variable will default to ["all"].
AnsibleSearchPathRequired
- Type: SimpleVariable
Current search path for action plugins and lookups, in other words, where we search for relative paths when you do template: src=myfile.
AnsibleSkipTagsRequired
- Type: ListVariable
Contents of the --skip-tags CLI option, which specifies which tags will be skipped for the current run.
AnsibleUserRequired
- Type: SimpleVariable
The user Ansible ‘logs in’ as.
AnsibleVerbosityRequired
- Type: SimpleVariable
Current verbosity setting for Ansible.
AnsibleVersionRequired
- Type: SimpleVariable
Dictionary/map that contains information about the current running version of ansible, it has the following keys: full, major, minor, revision and string.
GroupNamesRequired
- Type: ListVariable
List of groups the current host is part of.
GroupsRequired
- Type: DictionaryVariable
A dictionary/map with all the groups in inventory and each group has the list of hosts that belong to it.
HostVarsRequired
- Type: DictionaryVariable
A dictionary/map with all the hosts in inventory and variables assigned to them.
InventoryDirRequired
- Type: SimpleVariable
The directory of the inventory source in which the inventory_hostname was first defined.
InventoryFileRequired
- Type: SimpleVariable
The file name of the inventory source in which the inventory_hostname was first defined.
InventoryHostnameRequired
- Type: SimpleVariable
The inventory name for the ‘current’ host being iterated over in the play.
InventoryHostnameShortRequired
- Type: SimpleVariable
The short version of inventory_hostname.
ItemRequired
- Type: AnyVariable
A special variable to quickly implement an item variable in a loop.
OmitRequired
- Type: SimpleVariable
Special variable that allows you to ‘omit’ an option in a task, for example - user: name=bob home={{ bobs_home|default(omit) }}.
PlaybookDirRequired
- Type: SimpleVariable
The path to the directory of the current playbook being executed.
NOTE: This might be different than directory of the playbook passed to the ansible-playbook command line when a playbook contains a import_playbook statement.
RoleNameRequired
- Type: SimpleVariable
The name of the role currently being executed.
RolePathRequired
- Type: SimpleVariable
The path to the dir of the currently running role.
PlayDefinition
- Implements: IPlayChainable
Methods
| Name | Description |
|---|---|
toJson |
Iterate over the chain, JSONify it, and return it as an array. |
next |
No description. |
toJson
Iterate over the chain, JSONify it, and return it as an array.
next
nextRequired
- Type: IPlayChainable
Static Functions
| Name | Description |
|---|---|
sequence |
No description. |
sequence
import { PlayDefinition } from 'cdk-ans'
PlayDefinition.sequence(next: IPlayChainable, chain: Step[])
nextRequired
- Type: IPlayChainable
chainRequired
- Type: Step[]
Properties
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
ProjectSynthesizer
- Implements: ISynthesizer
Initializers
import { ProjectSynthesizer } from 'cdk-ans'
new ProjectSynthesizer(options?: ProjectSynthesizerOptions)
| Name | Type | Description |
|---|---|---|
options |
ProjectSynthesizerOptions |
No description. |
optionsOptional
Methods
| Name | Description |
|---|---|
synth |
No description. |
synth
projectRequired
- Type: Project
outDirRequired
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
options |
ProjectSynthesizerOptions |
No description. |
optionsRequired
RoleDefinition
- Implements: IRoleChainable
Methods
| Name | Description |
|---|---|
toJson |
Iterate over the chain, JSONify it, and return it as an array. |
next |
No description. |
toJson
Iterate over the chain, JSONify it, and return it as an array.
next
nextRequired
- Type: IRoleChainable
Static Functions
| Name | Description |
|---|---|
sequence |
No description. |
sequence
import { RoleDefinition } from 'cdk-ans'
RoleDefinition.sequence(next: IRoleChainable, chain: Step[])
nextRequired
- Type: IRoleChainable
chainRequired
- Type: Step[]
Properties
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
RunDefinition
- Implements: IChainable
Initializers
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
Methods
| Name | Description |
|---|---|
toJson |
Iterate over the chain, JSONify it, and return it as an array. |
toJson
Iterate over the chain, JSONify it, and return it as an array.
Properties
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
SimpleVariable
A variable that represents a flat value (string, number, boolean).
Initializers
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsOptional
- Type: string[]
Methods
| Name | Description |
|---|---|
asRaw |
Returns the variable as a raw string. |
asVariable |
Returns the variable as an ansible variable string {{ variable }}. |
index |
No description. |
property |
No description. |
asRaw
Returns the variable as a raw string.
asVariable
Returns the variable as an ansible variable string {{ variable }}.
index
_Required
- Type: number
property
_Required
- Type: string
Static Functions
| Name | Description |
|---|---|
of |
No description. |
of
nameRequired
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
nameRequired
- Type: string
parentsRequired
- Type: string[]
TaskAction
Base class for all Task Actions.
Initializers
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
props |
{[ key: string ]: any} |
No description. |
nameRequired
- Type: string
propsRequired
- Type: {[ key: string ]: any}
Methods
| Name | Description |
|---|---|
toJson |
No description. |
toJson
Properties
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
props |
{[ key: string ]: any} |
No description. |
nameRequired
- Type: string
propsRequired
- Type: {[ key: string ]: any}
TaskDefinition
- Implements: ITaskChainable
Methods
| Name | Description |
|---|---|
toJson |
Iterate over the chain, JSONify it, and return it as an array. |
next |
No description. |
toJson
Iterate over the chain, JSONify it, and return it as an array.
next
nextRequired
- Type: ITaskChainable
Static Functions
| Name | Description |
|---|---|
sequence |
No description. |
sequence
import { TaskDefinition } from 'cdk-ans'
TaskDefinition.sequence(next: ITaskChainable, chain: Step[])
nextRequired
- Type: ITaskChainable
chainRequired
- Type: Step[]
Properties
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
Yaml
YAML utilities.
Static Functions
| Name | Description |
|---|---|
load |
Downloads a set of YAML documents from a file and returns them as javascript objects. |
save |
Saves a set of objects as a multi-document YAML file. |
stringify |
Stringify a document (or multiple documents) into YAML. |
load
Downloads a set of YAML documents from a file and returns them as javascript objects.
Empty documents are filtered out.
fileRequired
- Type: string
path to load from.
save
Saves a set of objects as a multi-document YAML file.
filePathRequired
- Type: string
The output path.
docsRequired
- Type: any[]
The set of objects.
stringify
Stringify a document (or multiple documents) into YAML.
We convert undefined values to null, but ignore any documents that are undefined.
docsRequired
- Type: any
A set of objects to convert to YAML.
Protocols
IChainable
- Implemented By: Block, Play, PlayDefinition, RoleDefinition, RoleTarget, RunDefinition, Task, TaskDefinition, IChainable, IPlayChainable, IRoleChainable, ITaskChainable
Properties
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
IHostIdentifiable
- Implemented By: AllHosts, Host, HostGroup, IHostIdentifiable
Properties
| Name | Type | Description |
|---|---|---|
identifier |
string |
No description. |
identifierRequired
- Type: string
IPlayChainable
-
Extends: IChainable
-
Implemented By: Play, PlayDefinition, IPlayChainable
Methods
| Name | Description |
|---|---|
next |
No description. |
next
nextRequired
- Type: IPlayChainable
Properties
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
IRoleChainable
-
Extends: IChainable
-
Implemented By: RoleDefinition, RoleTarget, IRoleChainable
Methods
| Name | Description |
|---|---|
next |
No description. |
next
nextRequired
- Type: IRoleChainable
Properties
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
ISynthesizer
- Implemented By: ProjectSynthesizer, ISynthesizer
Methods
| Name | Description |
|---|---|
synth |
No description. |
synth
projectRequired
- Type: Project
outDirRequired
- Type: string
ITaskChainable
-
Extends: IChainable
-
Implemented By: Block, Task, TaskDefinition, ITaskChainable
Methods
| Name | Description |
|---|---|
next |
No description. |
next
nextRequired
- Type: ITaskChainable
Properties
| Name | Type | Description |
|---|---|---|
chain |
Step[] |
No description. |
chainRequired
- Type: Step[]
IVariable
- Implemented By: AnyVariable, BaseVariable, DictionaryVariable, HostVariable, ListVariable, SimpleVariable, IVariable
A variable that can access any type of variable.
Methods
| Name | Description |
|---|---|
asRaw |
Returns the variable as a raw string. |
asVariable |
Returns the variable as an ansible variable string {{ variable }}. |
index |
No description. |
property |
No description. |
asRaw
Returns the variable as a raw string.
asVariable
Returns the variable as an ansible variable string {{ variable }}.
index
indexRequired
- Type: number
property
nameRequired
- Type: string
Enums
AnsibleConnection
The connection type to use to connect to the host.
https://docs.ansible.com/ansible/latest/user_guide/connection_details.html#connection-types
Members
| Name | Description |
|---|---|
SMART |
No description. |
SSH |
No description. |
PARAMIKO |
No description. |
LOCAL |
No description. |
SMART
SSH
PARAMIKO
LOCAL
ConditionalEvaluation
Members
| Name | Description |
|---|---|
AND |
No description. |
OR |
No description. |
IS |
No description. |
IS_NOT |
No description. |
IN |
No description. |
NOT_IN |
No description. |
WHEN_EQUALS |
No description. |
WHEN_NOT_EQUALS |
No description. |
WHEN_GREATER_THAN |
No description. |
WHEN_LESS_THAN |
No description. |
WHEN_GREATER_THAN_OR_EQUALS |
No description. |
WHEN_LESS_THAN_OR_EQUALS |
No description. |
BOOL |
No description. |
BOOL_NOT |
No description. |
DEFINED |
No description. |
UNDEFINED |
No description. |
FAILED |
No description. |
SUCCEEDED |
No description. |
SKIPPED |
No description. |
CHANGED |
No description. |
AND
OR
IS
IS_NOT
IN
NOT_IN
WHEN_EQUALS
WHEN_NOT_EQUALS
WHEN_GREATER_THAN
WHEN_LESS_THAN
WHEN_GREATER_THAN_OR_EQUALS
WHEN_LESS_THAN_OR_EQUALS
BOOL
BOOL_NOT
DEFINED
UNDEFINED
FAILED
SUCCEEDED
SKIPPED
CHANGED
InventoryOutputType
How inventories should be sythesized in the output directory.
Members
| Name | Description |
|---|---|
SINGLE_FILE |
Create a single inventory file including all hosts, hosts vars, and groups in one. |
GROUP_AND_HOST_VAR_FILES |
Create a file for hosts, a file for each host's vars, and a file for each group's vars. |
SINGLE_FILE
Create a single inventory file including all hosts, hosts vars, and groups in one.
GROUP_AND_HOST_VAR_FILES
Create a file for hosts, a file for each host's vars, and a file for each group's vars.
IsEvaluation
Members
| Name | Description |
|---|---|
DEFINED |
No description. |
UNDEFINED |
No description. |
FAILED |
No description. |
SUCCEEDED |
No description. |
SKIPPED |
No description. |
CHANGED |
No description. |
DEFINED
UNDEFINED
FAILED
SUCCEEDED
SKIPPED
CHANGED
PlaybookOutputType
How playbooks should be sythesized in the output directory.
Members
| Name | Description |
|---|---|
IN_ROOT |
Place all playbooks in the root of the project. |
IN_DIRECTORY |
Place all playbooks in a directory named "playbooks". |
IN_ROOT
Place all playbooks in the root of the project.
IN_DIRECTORY
Place all playbooks in a directory named "playbooks".
PlayHostOrder
Members
| Name | Description |
|---|---|
INVENTORY |
No description. |
SORTED |
No description. |
REVERSE_SORTED |
No description. |
REVERSE_INVENTORY |
No description. |
SHUFFLED |
No description. |
INVENTORY
SORTED
REVERSE_SORTED
REVERSE_INVENTORY
SHUFFLED
RoleOutputType
How roles should be sythesized in the output directory.
Members
| Name | Description |
|---|---|
STANDARD |
Use the standard role structure https://docs.ansible.com/ansible/2.8/user_guide/playbooks_reuse_roles.html#role-directory-structure. |
STANDARD
Use the standard role structure https://docs.ansible.com/ansible/2.8/user_guide/playbooks_reuse_roles.html#role-directory-structure.