ansible
This module provides a set of functions to run ansible playbooks and to create a development environment with ansible installed.
Installation
dagger install github.com/tsirysndr/daggerverse/ansible@e8bed26dfefaaf4ef3d00958965575131f34c69c
Entrypoint
Return Type
Ansible
Example
dagger -m github.com/tsirysndr/daggerverse/ansible@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *myModule) example() *Ansible {
return dag.
Ansible()
}
@function
def example() -> dag.Ansible:
return (
dag.ansible()
)
@func()
example(): Ansible {
return dag
.ansible()
}
Types
Ansible 🔗
playbook() 🔗
Runs a playbook.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
playbook | String ! | - | No description provided |
tag | String | "latest" | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/ansible@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
playbook --src DIR_PATH --playbook string
func (m *myModule) example(ctx context.Context, src *Directory, playbook string) string {
return dag.
Ansible().
Playbook(ctx, src, playbook)
}
@function
async def example(src: dagger.Directory, playbook: str) -> str:
return await (
dag.ansible()
.playbook(src, playbook)
)
@func()
async example(src: Directory, playbook: string): Promise<string> {
return dag
.ansible()
.playbook(src, playbook)
}
dev() 🔗
Returns a container with ansible installed.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
tag | String | "latest" | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/ansible@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
dev
func (m *myModule) example() *Container {
return dag.
Ansible().
Dev()
}
@function
def example() -> dagger.Container:
return (
dag.ansible()
.dev()
)
@func()
example(): Container {
return dag
.ansible()
.dev()
}