ansible
Copyright © 2024 Patrick Hermann patrick.hermann@sva.de
Installation
dagger install github.com/stuttgart-things/dagger/ansible@v0.1.1
Entrypoint
Return Type
Ansible !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ansibleContainer | Container | - | ansible container It need contain ansible |
Example
dagger -m github.com/stuttgart-things/dagger/ansible@c2758301c9ec8b801ed00539c64f2c88c6c7073e 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 🔗
ansibleContainer() 🔗
Return Type
Container !
Example
dagger -m github.com/stuttgart-things/dagger/ansible@c2758301c9ec8b801ed00539c64f2c88c6c7073e call \
ansible-container
func (m *myModule) example() *Container {
return dag.
Ansible().
AnsibleContainer()
}
@function
def example() -> dagger.Container:
return (
dag.ansible()
.ansible_container()
)
@func()
example(): Container {
return dag
.ansible()
.ansibleContainer()
}
build() 🔗
BUILDS A GIVEN COLLECTION DIR TO A ARCHIVE FILE (.TGZ)
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/ansible@c2758301c9ec8b801ed00539c64f2c88c6c7073e call \
build --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Ansible().
Build(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.ansible()
.build(src)
)
@func()
example(src: Directory): Directory {
return dag
.ansible()
.build(src)
}
modifyRoleIncludes() 🔗
BUILDS A GIVEN COLLECTION DIR TO A ARCHIVE FILE (.TGZ)
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/ansible@c2758301c9ec8b801ed00539c64f2c88c6c7073e call \
modify-role-includes --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Ansible().
ModifyRoleIncludes(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.ansible()
.modify_role_includes(src)
)
@func()
example(src: Directory): Directory {
return dag
.ansible()
.modifyRoleIncludes(src)
}
initCollection() 🔗
INIT ANSIBLE COLLECTION STRUCTURE
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/ansible@c2758301c9ec8b801ed00539c64f2c88c6c7073e call \
init-collection --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Ansible().
InitCollection(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.ansible()
.init_collection(src)
)
@func()
example(src: Directory): Directory {
return dag
.ansible()
.initCollection(src)
}
getAnsibleContainer() 🔗
GetAnsibleContainer return the default image for helm
Return Type
Container !
Example
dagger -m github.com/stuttgart-things/dagger/ansible@c2758301c9ec8b801ed00539c64f2c88c6c7073e call \
get-ansible-container
func (m *myModule) example() *Container {
return dag.
Ansible().
GetAnsibleContainer()
}
@function
def example() -> dagger.Container:
return (
dag.ansible()
.get_ansible_container()
)
@func()
example(): Container {
return dag
.ansible()
.getAnsibleContainer()
}