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@4ad5ef96c6927036d96bbb5fc71824e8bb115d26
Entrypoint
Return Type
Ansible
Example
dagger -m github.com/tsirysndr/daggerverse/ansible@4ad5ef96c6927036d96bbb5fc71824e8bb115d26 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() 🔗
Run 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@4ad5ef96c6927036d96bbb5fc71824e8bb115d26 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@4ad5ef96c6927036d96bbb5fc71824e8bb115d26 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()
}