Dagger
Search

ansible

Copyright © 2024 Patrick Hermann patrick.hermann@sva.de

Installation

dagger install github.com/stuttgart-things/dagger/ansible@v0.1.0

Entrypoint

Return Type
Ansible !
Arguments
NameTypeDefault ValueDescription
ansibleContainerContainer -ansible container It need contain ansible
Example
dagger -m github.com/stuttgart-things/dagger/ansible@cc80ca5d078856f4c32beeae532c3abd0ca8b43a 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@cc80ca5d078856f4c32beeae532c3abd0ca8b43a 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
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/ansible@cc80ca5d078856f4c32beeae532c3abd0ca8b43a 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
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/ansible@cc80ca5d078856f4c32beeae532c3abd0ca8b43a 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
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/ansible@cc80ca5d078856f4c32beeae532c3abd0ca8b43a 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@cc80ca5d078856f4c32beeae532c3abd0ca8b43a 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()
}