Dagger
Search

ansible

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install gitlab.com/abes140377/daggerverse/ansible@7266b8a190f2552e99aa22af9bdd65e4fe557ba0

Entrypoint

Return Type
Ansible
Example
dagger -m gitlab.com/abes140377/daggerverse/ansible@7266b8a190f2552e99aa22af9bdd65e4fe557ba0 call \
func (m *MyModule) Example() *dagger.Ansible  {
	return dag.
			Ansible()
}
@function
def example() -> dagger.Ansible:
	return (
		dag.ansible()
	)
@func()
example(): Ansible {
	return dag
		.ansible()
}

Types

Ansible 🔗

galaxyInstall() 🔗

Install Ansible Galaxy collections from a requirements file.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
directoryDirectory !-No description provided
requirementsFileString !-No description provided
Example
dagger -m gitlab.com/abes140377/daggerverse/ansible@7266b8a190f2552e99aa22af9bdd65e4fe557ba0 call \
 galaxy-install --directory DIR_PATH --requirements-file string
func (m *MyModule) Example(directory *dagger.Directory, requirementsFile string) *dagger.Container  {
	return dag.
			Ansible().
			GalaxyInstall(directory, requirementsFile)
}
@function
def example(directory: dagger.Directory, requirements_file: str) -> dagger.Container:
	return (
		dag.ansible()
		.galaxy_install(directory, requirements_file)
	)
@func()
example(directory: Directory, requirementsFile: string): Container {
	return dag
		.ansible()
		.galaxyInstall(directory, requirementsFile)
}