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. |
props
Optional
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
inventories
Required
- Type: Inventory[]
Returns all the inventories in this app, sorted topologically.
outdir
Required
- Type: string
The output directory into which files will be synthesized.
playbooks
Required
- Type: Playbook[]
Returns all the playbooks in this app, sorted topologically.
projects
Required
- Type: Project[]
Returns all the playbooks in this app, sorted topologically.
roles
Required
- Type: Role[]
Returns all the roles in this app, sorted topologically.
synthesizer
Required
- 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. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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
next
Required
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
chain
Required
- Type: Step[]
name
Required
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
tasks
Required
- Type: TaskDefinition
always
Optional
- Type: TaskDefinition
notify
Optional
- Type: Handler[]
rescue
Optional
- Type: TaskDefinition
when
Optional
- Type: Conditional
File
Initializers
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
FileProps |
No description. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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.
x
Required
- Type: any
Any object.
Properties
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fileName |
string |
No description. |
path |
string |
No description. |
node
Required
- Type: constructs.Node
The tree node.
fileName
Required
- Type: string
path
Required
- Type: string
Handler
Initializers
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
HandlerProps |
No description. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
chain
Required
- Type: Step[]
name
Required
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
action
Required
- Type: TaskAction
listen
Optional
- 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. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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.
variables
Required
- 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.
x
Required
- Type: any
Any object.
isHost
Return whether the given object is a Host.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
ansibleConnection
Required
- Type: AnsibleConnection
ansibleHost
Required
- Type: string
identifier
Required
- Type: string
variables
Required
- Type: HostVariable[]
ansibleBecome
Optional
- Type: boolean
ansiblePassword
Optional
- Type: string
ansiblePort
Optional
- Type: number
ansibleUser
Optional
- 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. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Optional
- 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.
hosts
Required
- Type: Host
A list of hosts to add to this group.
addSubGroups
Assigns additional groups as subgroups to this group.
groups
Required
- Type: HostGroup
A list of groups to add as subgroups to this group.
addVariables
Assigns additional variables to this group.
variables
Required
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
groups
Required
- Type: {[ key: string ]: HostGroup}
hosts
Required
- Type: Host[]
identifier
Required
- Type: string
variables
Required
- 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. |
scope
Required
- Type: constructs.Construct
id
Required
- Type: string
props
Required
- 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.
x
Required
- Type: any
Any object.
Properties
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
name |
string |
No description. |
value |
string |
No description. |
node
Required
- Type: constructs.Node
The tree node.
name
Required
- Type: string
value
Required
- 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. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
groups
Required
- Type: HostGroup[]
hosts
Required
- Type: Host[]
name
Required
- Type: string
variables
Required
- 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. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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
next
Required
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
chain
Required
- Type: Step[]
name
Required
- Type: string
hosts
Required
- Type: IHostIdentifiable[]
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
factPath
Optional
- Type: string
forceHandlers
Optional
- Type: boolean
gatherFacts
Optional
- Type: boolean
gatherSubset
Optional
- Type: string
gatherTimeout
Optional
- Type: number
handlers
Optional
- Type: Handler[]
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
maxFailPercentage
Optional
- Type: number
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
order
Optional
- Type: PlayHostOrder
port
Optional
- Type: number
postTasks
Optional
- Type: TaskDefinition
preTasks
Optional
- Type: TaskDefinition
remoteUser
Optional
- Type: string
roles
Optional
- Type: RoleDefinition
runOnce
Optional
- Type: boolean
serial
Optional
- Type: number
strategy
Optional
- Type: string
tags
Optional
- Type: string[]
tasks
Optional
- Type: TaskDefinition
throttle
Optional
- Type: number
timeout
Optional
- Type: number
varPrompt
Optional
- Type: string[]
vars
Optional
- Type: {[ key: string ]: any}
varsFiles
Optional
- 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. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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.
x
Required
- Type: any
Any object.
Properties
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
name |
string |
No description. |
playDefinition |
PlayDefinition |
No description. |
node
Required
- Type: constructs.Node
The tree node.
name
Required
- Type: string
playDefinition
Required
- Type: PlayDefinition
Project
Initializers
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
ProjectProps |
No description. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Optional
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
inventories
Required
- Type: Inventory[]
name
Required
- Type: string
playbooks
Required
- Type: Playbook[]
roles
Required
- Type: Role[]
Resource
Initializers
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
scope
Required
- Type: constructs.Construct
name
Required
- 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.
x
Required
- Type: any
Any object.
Properties
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
node
Required
- Type: constructs.Node
The tree node.
Role
Initializers
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
RoleProps |
No description. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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
variables
Required
- Type: {[ key: string ]: any}
addFile
file
Required
- Type: File
addHandler
handler
Required
- Type: Handler
addTask
task
Required
- Type: Task
addTemplate
template
Required
- Type: TemplateFile
addVariables
variables
Required
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
defaults
Required
- Type: {[ key: string ]: any}
files
Required
- Type: File[]
handlers
Required
- Type: Handler[]
name
Required
- Type: string
tasks
Required
- Type: TaskDefinition
templates
Required
- Type: TemplateFile[]
variables
Required
- 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
next
Required
- 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.
x
Required
- 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.
scope
Required
- Type: constructs.Construct
id
Required
- Type: string
role
Required
- Type: Role
props
Optional
- 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. |
node
Required
- Type: constructs.Node
The tree node.
chain
Required
- Type: Step[]
name
Required
- Type: string
role
Required
- Type: Role
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
delegateFacts
Optional
- Type: boolean
delegateTo
Optional
- Type: string
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
when
Optional
- Type: Conditional
Step
Initializers
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
StepProps |
No description. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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.
x
Required
- Type: any
Any object.
Properties
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
chain |
Step[] |
No description. |
name |
string |
No description. |
node
Required
- Type: constructs.Node
The tree node.
chain
Required
- Type: Step[]
name
Required
- Type: string
Task
- Implements: ITaskChainable
Initializers
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
props |
TaskProps |
No description. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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
next
Required
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
chain
Required
- Type: Step[]
name
Required
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
action
Required
- Type: TaskAction
args
Optional
- Type: {[ key: string ]: any}
async
Optional
- Type: number
changedWhen
Optional
- Type: string
delay
Optional
- Type: number
delegateFacts
Optional
- Type: boolean
delegateTo
Optional
- Type: string
failedWhen
Optional
- Type: Conditional[]
localAction
Optional
- Type: string
loop
Optional
- Type: string | string[]
loopControl
Optional
- Type: {[ key: string ]: any}
notify
Optional
- Type: Handler[]
poll
Optional
- Type: number
register
Optional
- Type: string
retries
Optional
- Type: number
until
Optional
- Type: string
when
Optional
- Type: Conditional
with
Optional
- Type: string[]
withItems
Optional
- 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. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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.
x
Required
- 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. |
node
Required
- Type: constructs.Node
The tree node.
chain
Required
- Type: Step[]
name
Required
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- 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. |
scope
Required
- Type: constructs.Construct
name
Required
- Type: string
props
Required
- 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.
x
Required
- Type: any
Any object.
Properties
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fileName |
string |
No description. |
path |
string |
No description. |
node
Required
- Type: constructs.Node
The tree node.
fileName
Required
- Type: string
path
Required
- Type: string
Structs
AppProps
Initializer
Properties
Name | Type | Description |
---|---|---|
outdir |
string |
No description. |
synthesizer |
ISynthesizer |
No description. |
outdir
Optional
- Type: string
- Default: CDKANS_OUTDIR if defined, otherwise "dist"
synthesizer
Optional
- 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. |
name
Optional
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
tasks
Required
- Type: TaskDefinition
always
Optional
- Type: TaskDefinition
delegateFacts
Optional
- Type: boolean
delegateTo
Optional
- Type: string
notify
Optional
- Type: Handler[]
rescue
Optional
- Type: TaskDefinition
when
Optional
- Type: Conditional
FileProps
Initializer
Properties
Name | Type | Description |
---|---|---|
path |
string |
No description. |
fileName |
string |
No description. |
path
Required
- Type: string
fileName
Optional
- 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. |
name
Optional
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
action
Required
- Type: TaskAction
listen
Optional
- 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. |
groups
Optional
- Type: HostGroup[]
Subgroups of this group.
hosts
Optional
- Type: Host[]
Hosts in this group.
identifier
Optional
- Type: string
The identifier of the group.
variables
Optional
- 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. |
host
Required
- Type: string
The hostname or IP address of the host.
ansibleBecome
Optional
- Type: boolean
- Default: no become
Whether to become privileged.
https://docs.ansible.com/ansible/latest/user_guide/become.html
ansiblePassword
Optional
- 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
ansiblePort
Optional
- 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
ansibleUser
Optional
- Type: string
The user to connect to the host as.
connectionType
Optional
- Type: AnsibleConnection
- Default: AnsibleConnection.SSH
The connection type to use to connect to the host.
identifier
Optional
- Type: string
- Default: the construct's id
The identifier of the host on synthesis.
variables
Optional
- Type: HostVariable[]
Additional variables to set for the host.
HostVariableProps
Initializer
Properties
Name | Type | Description |
---|---|---|
name |
string |
No description. |
value |
string |
No description. |
name
Required
- Type: string
value
Required
- 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. |
groups
Optional
- Type: HostGroup[]
Groups in the inventory.
hosts
Optional
- Type: Host[]
Hosts in the inventory.
Hosts added here are part of the top level "all" group.
name
Optional
- Type: string
- Default: the name of the construct.
The name of the inventory.
variables
Optional
- 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. |
playDefinition
Required
- Type: PlayDefinition
name
Optional
- 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. |
name
Optional
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
hosts
Required
- Type: IHostIdentifiable[]
factPath
Optional
- Type: string
forceHandlers
Optional
- Type: boolean
gatherFacts
Optional
- Type: boolean
gatherSubset
Optional
- Type: string
gatherTimeout
Optional
- Type: number
handlers
Optional
- Type: Handler[]
maxFailPercentage
Optional
- Type: number
order
Optional
- Type: PlayHostOrder
postTasks
Optional
- Type: TaskDefinition
preTasks
Optional
- Type: TaskDefinition
roles
Optional
- Type: RoleDefinition
serial
Optional
- Type: number
strategy
Optional
- Type: string
tasks
Optional
- Type: TaskDefinition
varPrompt
Optional
- Type: string[]
varsFiles
Optional
- Type: string[]
ProjectProps
Initializer
Properties
Name | Type | Description |
---|---|---|
name |
string |
No description. |
name
Optional
- 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. |
inventoryOptions
Optional
Options on how to synthesize inventories.
playbookOptions
Optional
Options on how to synthesize playbooks.
roleOptions
Optional
- 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. |
tasks
Required
- Type: TaskDefinition
defaults
Optional
- Type: {[ key: string ]: any}
files
Optional
- Type: File[]
handlers
Optional
- Type: Handler[]
name
Optional
- Type: string
templates
Optional
- Type: TemplateFile[]
variables
Optional
- 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. |
name
Optional
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
delegateFacts
Optional
- Type: boolean
delegateTo
Optional
- Type: string
when
Optional
- Type: Conditional
StepProps
Initializer
Properties
Name | Type | Description |
---|---|---|
name |
string |
No description. |
name
Optional
- 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. |
inventoryOutputType
Optional
- Type: InventoryOutputType
- Default: InventoryOutputType.SINGLE_FILE
How to organzie inventory output.
outDir
Optional
- 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. |
outDir
Optional
- Type: string
- Default: projects
Where synthezied playbooks should be saved.
Only used if playbookOutputType
is PlaybookOutputType.IN_DIRECTORY
playbookOutputType
Optional
- 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. |
outDir
Optional
- Type: string
- Default: roles
Where synthezied roles should be saved.
roleOutputType
Optional
- 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. |
name
Optional
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- 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. |
name
Optional
- Type: string
anyErrorsFatal
Optional
- Type: boolean
become
Optional
- Type: boolean
becomeExe
Optional
- Type: string
becomeFlags
Optional
- Type: string
becomeMethod
Optional
- Type: string
becomeUser
Optional
- Type: string
checkMode
Optional
- Type: boolean
collections
Optional
- Type: string[]
connection
Optional
- Type: string
debugger
Optional
- Type: boolean
diff
Optional
- Type: boolean
environment
Optional
- Type: {[ key: string ]: any}
ignoreErrors
Optional
- Type: boolean
ignoreUnreachable
Optional
- Type: boolean
moduleDefaults
Optional
- Type: {[ key: string ]: any}
noLog
Optional
- Type: boolean
port
Optional
- Type: number
remoteUser
Optional
- Type: string
runOnce
Optional
- Type: boolean
tags
Optional
- Type: string[]
throttle
Optional
- Type: number
timeout
Optional
- Type: number
vars
Optional
- Type: {[ key: string ]: any}
action
Required
- Type: TaskAction
args
Optional
- Type: {[ key: string ]: any}
async
Optional
- Type: number
changedWhen
Optional
- Type: string
delay
Optional
- Type: number
delegateFacts
Optional
- Type: boolean
delegateTo
Optional
- Type: string
failedWhen
Optional
- Type: Conditional[]
localAction
Optional
- Type: string
loop
Optional
- Type: string | string[]
loopControl
Optional
- Type: {[ key: string ]: any}
notify
Optional
- Type: Handler[]
poll
Optional
- Type: number
register
Optional
- Type: string
retries
Optional
- Type: number
until
Optional
- Type: string
when
Optional
- Type: Conditional
with
Optional
- Type: string[]
withItems
Optional
- Type: {[ key: string ]: any}[]
TemplateFileProps
Initializer
Properties
Name | Type | Description |
---|---|---|
path |
string |
No description. |
fileName |
string |
No description. |
path
Required
- Type: string
fileName
Optional
- 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. |
identifier
Required
- 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. |
name
Required
- Type: string
parents
Optional
- 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
index
Required
- Type: number
property
key
Required
- Type: string
Static Functions
Name | Description |
---|---|
of |
No description. |
of
name
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
name
Required
- Type: string
parents
Required
- 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. |
name
Required
- Type: string
parents
Optional
- 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
index
Required
- Type: number
property
name
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
name
Required
- Type: string
parents
Required
- 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
condition1
Required
- Type: any
condition2
Required
- Type: any
bool
bool
Required
- Type: any
equal
var1
Required
- Type: any
var2
Required
- Type: any
greaterThan
var1
Required
- Type: any
var2
Required
- Type: any
greaterThanOrEqual
var1
Required
- Type: any
var2
Required
- Type: any
in
var1
Required
- Type: any
var2
Required
- Type: any
is
var1
Required
- Type: any
isEval
Required
- Type: IsEvaluation
isNot
var1
Required
- Type: any
isEval
Required
- Type: IsEvaluation
lessThan
var1
Required
- Type: any
var2
Required
- Type: any
lessThanOrEqual
var1
Required
- Type: any
var2
Required
- Type: any
notBool
bool
Required
- Type: any
notEqual
var1
Required
- Type: any
var2
Required
- Type: any
notIn
var1
Required
- Type: any
var2
Required
- Type: any
or
condition1
Required
- Type: any
condition2
Required
- Type: any
Properties
Name | Type | Description |
---|---|---|
mode |
ConditionalEvaluation |
No description. |
var1 |
any |
No description. |
var2 |
any |
No description. |
mode
Required
- Type: ConditionalEvaluation
var1
Required
- Type: any
var2
Optional
- 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. |
node
Required
- Type: constructs.Node
Methods
Name | Description |
---|---|
topology |
No description. |
topology
Properties
Name | Type | Description |
---|---|---|
root |
DependencyVertex |
Returns the root of the graph. |
root
Required
- 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. |
value
Optional
- 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.
dep
Required
- 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. |
inbound
Required
- Type: DependencyVertex[]
Returns the parents of the vertex (i.e dependants).
outbound
Required
- Type: DependencyVertex[]
Returns the children of the vertex (i.e dependencies).
value
Optional
- 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. |
name
Required
- Type: string
parents
Optional
- 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
key
Required
- Type: string
Static Functions
Name | Description |
---|---|
of |
No description. |
of
name
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
name
Required
- Type: string
parents
Required
- 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. |
All
Required
- 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. |
name
Required
- Type: string
parents
Optional
- 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
index
Required
- Type: number
property
_
Required
- Type: string
Static Functions
Name | Description |
---|---|
of |
No description. |
of
name
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
name
Required
- Type: string
parents
Required
- 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. |
AnsibleBecomeUser
Required
- Type: SimpleVariable
The user Ansible ‘becomes’ after using privilege escalation.
This must be available to the ‘login user’.
AnsibleCheckMode
Required
- Type: SimpleVariable
Boolean that indicates if we are in check mode or not.
AnsibleCheckModeEnabled
Required
- Type: SimpleVariable
The names of the roles currently imported into the current play as dependencies of other plays.
AnsibleCollectionName
Required
- Type: SimpleVariable
The name of the collection the task that is executing is a part of.
In the format of namespace.collection
.
AnsibleConfigFile
Required
- Type: SimpleVariable
The full path of used Ansible configuration file.
AnsibleConnection
Required
- Type: SimpleVariable
The connection plugin actually used for the task on the target host.
AnsibleDiffMode
Required
- Type: SimpleVariable
Boolean that indicates if we are in diff mode or not.
AnsibleFacts
Required
- 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
AnsibleForks
Required
- Type: SimpleVariable
Integer reflecting the number of maximum forks available to this run.
AnsibleHost
Required
- Type: SimpleVariable
The ip/name of the target host to use instead of inventory_hostname.
AnsibleIndexVar
Required
- Type: SimpleVariable
The name of the value provided to loop_control.index_var
. Added in 2.9
.
AnsibleInventorySources
Required
- Type: ListVariable
List of sources used as inventory.
AnsibleLimit
Required
- Type: SimpleVariable
Contents of the --limit
CLI option for the current execution of Ansible.
AnsibleLocal
Required
- 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.
AnsibleLoop
Required
- Type: DictionaryVariable
A dictionary/map containing extended loop information when enabled through loop_control.extended
.
AnsibleLoopVar
Required
- Type: SimpleVariable
The name of the value provided to loop_control.loop_var
. Added in 2.8
.
AnsibleParentRoleNames
Required
- 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
AnsibleParentRolePath
Required
- 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
AnsiblePlayBatch
Required
- Type: ListVariable
List of active hosts in the current play run limited by the serial, aka ‘batch’.
Failed/Unreachable hosts are not considered ‘active’.
AnsiblePlaybookPython
Required
- Type: SimpleVariable
The path to the python interpreter being used by Ansible on the controller.
AnsiblePlayHosts
Required
- Type: ListVariable
List of hosts in the current play run, not limited by the serial.
Failed/Unreachable hosts are excluded from this list.
AnsiblePlayHostsAll
Required
- Type: ListVariable
List of all the hosts that were targeted by the play.
AnsiblePlayName
Required
- Type: SimpleVariable
The name of the currently executed play.
Added in 2.8.
(name attribute of the play, not file name of the playbook.)
AnsiblePlayRoleNames
Required
- 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.
AnsiblePort
Required
- Type: SimpleVariable
The port used to connect to the target host.
AnsiblePythonInterpreter
Required
- 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
AnsibleRoleName
Required
- Type: SimpleVariable
The fully qualified collection role name, in the format of namespace.collection.role_name
.
AnsibleRoleNames
Required
- 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.
AnsibleRunTags
Required
- 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"]
.
AnsibleSearchPath
Required
- 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
.
AnsibleSkipTags
Required
- Type: ListVariable
Contents of the --skip-tags
CLI option, which specifies which tags will be skipped for the current run.
AnsibleUser
Required
- Type: SimpleVariable
The user Ansible ‘logs in’ as.
AnsibleVerbosity
Required
- Type: SimpleVariable
Current verbosity setting for Ansible.
AnsibleVersion
Required
- 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.
GroupNames
Required
- Type: ListVariable
List of groups the current host is part of.
Groups
Required
- Type: DictionaryVariable
A dictionary/map with all the groups in inventory and each group has the list of hosts that belong to it.
HostVars
Required
- Type: DictionaryVariable
A dictionary/map with all the hosts in inventory and variables assigned to them.
InventoryDir
Required
- Type: SimpleVariable
The directory of the inventory source in which the inventory_hostname
was first defined.
InventoryFile
Required
- Type: SimpleVariable
The file name of the inventory source in which the inventory_hostname
was first defined.
InventoryHostname
Required
- Type: SimpleVariable
The inventory name for the ‘current’ host being iterated over in the play.
InventoryHostnameShort
Required
- Type: SimpleVariable
The short version of inventory_hostname
.
Item
Required
- Type: AnyVariable
A special variable to quickly implement an item variable in a loop.
Omit
Required
- Type: SimpleVariable
Special variable that allows you to ‘omit’ an option in a task, for example - user: name=bob home={{ bobs_home|default(omit) }}
.
PlaybookDir
Required
- 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.
RoleName
Required
- Type: SimpleVariable
The name of the role currently being executed.
RolePath
Required
- 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
next
Required
- Type: IPlayChainable
Static Functions
Name | Description |
---|---|
sequence |
No description. |
sequence
import { PlayDefinition } from 'cdk-ans'
PlayDefinition.sequence(next: IPlayChainable, chain: Step[])
next
Required
- Type: IPlayChainable
chain
Required
- Type: Step[]
Properties
Name | Type | Description |
---|---|---|
chain |
Step[] |
No description. |
chain
Required
- Type: Step[]
ProjectSynthesizer
- Implements: ISynthesizer
Initializers
import { ProjectSynthesizer } from 'cdk-ans'
new ProjectSynthesizer(options?: ProjectSynthesizerOptions)
Name | Type | Description |
---|---|---|
options |
ProjectSynthesizerOptions |
No description. |
options
Optional
Methods
Name | Description |
---|---|
synth |
No description. |
synth
project
Required
- Type: Project
outDir
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
options |
ProjectSynthesizerOptions |
No description. |
options
Required
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
next
Required
- Type: IRoleChainable
Static Functions
Name | Description |
---|---|
sequence |
No description. |
sequence
import { RoleDefinition } from 'cdk-ans'
RoleDefinition.sequence(next: IRoleChainable, chain: Step[])
next
Required
- Type: IRoleChainable
chain
Required
- Type: Step[]
Properties
Name | Type | Description |
---|---|---|
chain |
Step[] |
No description. |
chain
Required
- Type: Step[]
RunDefinition
- Implements: IChainable
Initializers
Name | Type | Description |
---|---|---|
chain |
Step[] |
No description. |
chain
Required
- 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. |
chain
Required
- 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. |
name
Required
- Type: string
parents
Optional
- 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
name
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
name |
string |
No description. |
parents |
string[] |
No description. |
name
Required
- Type: string
parents
Required
- Type: string[]
TaskAction
Base class for all Task Actions.
Initializers
Name | Type | Description |
---|---|---|
name |
string |
No description. |
props |
{[ key: string ]: any} |
No description. |
name
Required
- Type: string
props
Required
- 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. |
name
Required
- Type: string
props
Required
- 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
next
Required
- Type: ITaskChainable
Static Functions
Name | Description |
---|---|
sequence |
No description. |
sequence
import { TaskDefinition } from 'cdk-ans'
TaskDefinition.sequence(next: ITaskChainable, chain: Step[])
next
Required
- Type: ITaskChainable
chain
Required
- Type: Step[]
Properties
Name | Type | Description |
---|---|---|
chain |
Step[] |
No description. |
chain
Required
- 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.
file
Required
- Type: string
path to load from.
save
Saves a set of objects as a multi-document YAML file.
filePath
Required
- Type: string
The output path.
docs
Required
- 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.
docs
Required
- 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. |
chain
Required
- Type: Step[]
IHostIdentifiable
- Implemented By: AllHosts, Host, HostGroup, IHostIdentifiable
Properties
Name | Type | Description |
---|---|---|
identifier |
string |
No description. |
identifier
Required
- Type: string
IPlayChainable
-
Extends: IChainable
-
Implemented By: Play, PlayDefinition, IPlayChainable
Methods
Name | Description |
---|---|
next |
No description. |
next
next
Required
- Type: IPlayChainable
Properties
Name | Type | Description |
---|---|---|
chain |
Step[] |
No description. |
chain
Required
- Type: Step[]
IRoleChainable
-
Extends: IChainable
-
Implemented By: RoleDefinition, RoleTarget, IRoleChainable
Methods
Name | Description |
---|---|
next |
No description. |
next
next
Required
- Type: IRoleChainable
Properties
Name | Type | Description |
---|---|---|
chain |
Step[] |
No description. |
chain
Required
- Type: Step[]
ISynthesizer
- Implemented By: ProjectSynthesizer, ISynthesizer
Methods
Name | Description |
---|---|
synth |
No description. |
synth
project
Required
- Type: Project
outDir
Required
- Type: string
ITaskChainable
-
Extends: IChainable
-
Implemented By: Block, Task, TaskDefinition, ITaskChainable
Methods
Name | Description |
---|---|
next |
No description. |
next
next
Required
- Type: ITaskChainable
Properties
Name | Type | Description |
---|---|---|
chain |
Step[] |
No description. |
chain
Required
- 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
index
Required
- Type: number
property
name
Required
- 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.