Documentation
¶
Overview ¶
Package modules implements Ansible's module execution model: each module is a Go function that takes a target connection (github.com/go-remoteexec/transport) and a set of arguments (already Jinja2-rendered by the caller) and returns a Result — Ansible's changed/failed/msg triple plus any module-specific fields.
Unlike real Ansible, which copies a Python script to the target and runs it there, a module here runs its logic on the control node and reaches the target only through the Connection's Exec/Put/Fetch primitives. The observable behavior is the same (the target ends up in the same state); the difference is architectural, not behavioral, and it means a module needs no Go toolchain on the target.
Index ¶
- Constants
- Variables
- func AcceptsRedfishBackend(module string) bool
- func AsyncCheck(ctx context.Context, conn remoteexec.Connection, jid string) (found, done bool, rc int, stdout, stderr string, err error)
- func AsyncCleanup(ctx context.Context, conn remoteexec.Connection, jid string) error
- func AsyncLaunch(ctx context.Context, conn remoteexec.Connection, cmdLine string) (jid string, err error)
- func AsyncResultsFile(ctx context.Context, conn remoteexec.Connection, jid string) string
- func Collection(name string) string
- func ComposeCommandLine(ctx context.Context, conn remoteexec.Connection, module string, ...) (cmdLine string, skip bool, skipMsg string, err error)
- func ContentHeader(path string) string
- func EnvironmentPrefix(args map[string]any) string
- func FQCN(name string) string
- func InCheckMode(args map[string]any) bool
- func InDiffMode(args map[string]any) bool
- func NormalizeName(name string) string
- func SupportsCheckMode(name string) bool
- type Diff
- type Func
- type Registry
- type Result
Constants ¶
const ( RedfishBackendRedfishtool = "redfishtool" RedfishBackendGoRedfish = "go-redfish" )
Values of RedfishBackendKey. The empty string, and "redfishtool", are the default: redfishtool on the target through the connection.
const CheckModeKey = "_ansible_check_mode"
CheckModeKey is how the playbook engine tells a module it is running a dry run. Real Ansible passes the same flag to every module under this exact name, so a module reads it out of its own arguments rather than through a separate parameter — which is also why adding check mode did not change the signature every module in this package is written to.
const DiffModeKey = "_ansible_diff"
DiffModeKey is the wire flag the engine passes in a task's arguments when the run was started with --diff, matching how real Ansible sends _ansible_diff alongside the module's own parameters. It travels in args for the same reason CheckModeKey does: adding a parameter to every module signature to carry one run-wide boolean would change 566 of them to serve a handful.
const EnvironmentKey = "_ansible_environment"
EnvironmentKey is the wire flag carrying a task's merged `environment:` into the module, alongside CheckModeKey and DiffModeKey. It travels in args for the same reason those do: one run-wide concern should not add a parameter to 566 signatures.
The engine has already merged the play's entries with the task's own (task wins) and templated every value, so what arrives here is final.
const MaxDiffSize int64 = 104448
MaxDiffSize is real Ansible's MAX_FILE_SIZE_FOR_DIFF default (ansible/config/base.yml): a file larger than this is reported as skipped rather than diffed, which also bounds the O(n*m) table the renderer builds.
const RedfishBackendKey = "_goansible_redfish_backend"
Opt-in in-process backend (go-redfish) ¶
By default redfish_command, redfish_config and redfish_info run DMTF's redfishtool ON THE TARGET through the connection (redfishtool_common.go), so the BMC request leaves from the target's network, as it does in real Ansible, where the module runs on the target. That default is unchanged.
The operator may instead ask for the go-redfish client (github.com/go-redfish/redfish), called IN-PROCESS from the go-ansible process: the BMC request then leaves from the CONTROL node, the connection is not used, and no redfishtool is needed on the target. The choice is stated, never inferred from the connection: a become-wrapped or SSH connection to the control node itself would be indistinguishable from a remote one.
The switch travels in args under RedfishBackendKey, the same shape as DiffModeKey and CheckModeKey (a run-wide switch that is not part of any module's argument_spec). The name is deliberately NOT in real Ansible's `_ansible_*` namespace, so that it cannot be mistaken for, or collide with, an internal real Ansible may define later.
How it is set: an engine that includes go-ansible/playbook#215 passes it from the variable goansible_redfish_backend (inventory, play vars, -e), which real Ansible ignores. An engine without #215 does not pass it at all; the only way left is then a task argument, which is NOT portable: real Ansible refuses a parameter outside the module's argument_spec, so a playbook using it fails there.
const VerboseAlwaysKey = "_ansible_verbose_always"
VerboseAlwaysKey marks a result a stdout callback should print in full without -v. Spelled as real Ansible spells it on the wire.
Variables ¶
var Docs = docsMerge(docsShards...)
Docs maps every registered module name to its Go doc comment — the same argument/deviation documentation this project has always written on each module<Name> function, extracted once at build time so ansible-doc can print it without the source tree present.
The entries live in the docs_generated_<letter>.go shards beside this file; see gendocs.MaxShardBytes for the measurement that put them there.
Functions ¶
func AcceptsRedfishBackend ¶ added in v0.99.0
AcceptsRedfishBackend reports whether the module named (bare or FQCN) reads RedfishBackendKey. The engine asks it, rather than keeping its own list, so that a module that learns the key is reached without a change in another repository.
func AsyncCheck ¶ added in v0.19.0
func AsyncCheck(ctx context.Context, conn remoteexec.Connection, jid string) (found, done bool, rc int, stdout, stderr string, err error)
func AsyncCleanup ¶ added in v0.19.0
func AsyncCleanup(ctx context.Context, conn remoteexec.Connection, jid string) error
AsyncCleanup removes a job's directory entirely — async_status's mode=cleanup.
func AsyncLaunch ¶ added in v0.19.0
func AsyncLaunch(ctx context.Context, conn remoteexec.Connection, cmdLine string) (jid string, err error)
AsyncLaunch backgrounds cmdLine on conn's target under a fresh job ID, returning immediately without waiting for it to finish — the command keeps running independently of this call and of the connection itself (nohup traps SIGHUP, so it survives the connection closing), which is the entire point of async:.
A real, disclosed limitation: unlike real Ansible's own async wrapper (which forks/setpgids the job so it can SIGKILL the whole process group if async: 's time limit is exceeded), this does NOT actively kill a job that overruns its time limit — there is no portable POSIX shell equivalent to killpg across every target shell this might run against without a dependency (setsid, part of util-linux) that real targets (macOS/BSD in particular) do not ship by default. AsyncCheck (see below) still enforces the time limit on the CONTROLLER side (a poll loop gives up and reports a timeout failure once the limit passes), it just doesn't reach out and stop the job itself the way real Ansible's wrapper does.
func AsyncResultsFile ¶ added in v0.76.0
func AsyncResultsFile(ctx context.Context, conn remoteexec.Connection, jid string) string
AsyncCheck reports a job's current status. found=false means no job directory exists at all for jid (a typo, or AsyncCleanup already ran) — distinct from done=false, which means the directory exists but the job is still running (or, indistinguishably, has not yet written its first byte of output — matching real Ansible's own async_status in that same ambiguous case). done=true gives rc/ stdout/stderr, fetched only then (not on every poll, to avoid hauling potentially large output over the wire while still waiting). AsyncResultsFile resolves the path real reports as `results_file`: the job's own file under the async directory. asyncDirExpr is a SHELL expression ("$HOME/.ansible_async") rather than a path, so $HOME has to be expanded on the TARGET -- reporting the unexpanded form would be a different string than real's.
One extra round trip, taken only where the value is actually reported, which in practice is async_status's own result.
func Collection ¶ added in v0.89.0
Collection reports the collection a module name belongs to. A fully-qualified name resolves like any other, through NormalizeName.
func ComposeCommandLine ¶ added in v0.19.0
func ComposeCommandLine(ctx context.Context, conn remoteexec.Connection, module string, args map[string]any) (cmdLine string, skip bool, skipMsg string, err error)
ComposeCommandLine composes the exact shell command line the "command" or "shell" module would execute for args (argv-quoting/ chdir handling included), running the real creates/removes short-circuit check against conn but WITHOUT executing the command itself — skip=true means the command should not run at all (skipMsg explains why, matching what a synchronous run would return via Ok(msg) instead of actually running anything).
Exported for go-ansible/playbook's async: task launcher: command and shell are the only two modules whose entire job reduces to one remote command, and so the only two this port can genuinely background on the target the way async requires — the launcher needs the exact command a synchronous run would use, to wrap it instead of running it directly.
func ContentHeader ¶ added in v0.45.0
ContentHeader is the "<path> (content)" form lineinfile and blockinfile use for both of their headers.
func EnvironmentPrefix ¶ added in v0.47.0
EnvironmentPrefix renders a task's environment: as the shell `export` that must precede its command, or "" when there is none.
An export rather than a `FOO=bar cmd` prefix, because a command may itself be `cd somewhere && real-command`: assignments written in front would apply to the `cd` alone, and the command that matters would run without them.
Keys are sorted so the same task produces the same command line twice — a map's order is not one.
func FQCN ¶ added in v0.89.0
FQCN qualifies a module name the way real ansible-doc prints it: <collection>.<name>. A name already carrying a dot is returned unchanged, and one with no known collection falls back to ansible.builtin -- the old assumption, kept only as a last resort so an unlisted name still prints something shaped like a module name.
func InCheckMode ¶ added in v0.41.0
InCheckMode reports whether args carry the dry-run flag.
func InDiffMode ¶ added in v0.44.0
InDiffMode reports whether args carry the diff flag.
func NormalizeName ¶ added in v0.18.0
NormalizeName strips a known collection prefix from an FQCN module or playbook-directive reference, returning name unchanged if it carries none of them.
func SupportsCheckMode ¶ added in v0.41.0
SupportsCheckMode reports whether the named module honours a dry run. A fully-qualified collection name resolves like any other.
Types ¶
type Diff ¶ added in v0.44.0
type Diff struct {
Before, After string
// BeforeHeader and AfterHeader name each side in the ---/+++ lines.
// Real modules put the path there, suffixed with "(content)" when
// the diff is of contents rather than of metadata — an empty header
// prints the bare word "before"/"after", which is what real Ansible
// shows for a file that did not exist yet.
BeforeHeader, AfterHeader string
// The skip reasons, which real Ansible reports in place of a diff
// it declines to compute. A non-zero *Larger is the size limit that
// was exceeded, and is printed as part of the message.
SrcBinary, DstBinary bool
SrcLarger, DstLarger int64
// Prepared is diff text a module formatted itself, emitted verbatim.
// Real Ansible's `prepared` key; used by modules whose change is not
// a file's contents.
Prepared string
}
Diff is a module's before/after report for a --diff run, the Go form of the `diff` key real Ansible modules return. A module fills in only what applies: the common case is Before/After plus the two headers, naming the file each side came from.
Before and After are the file CONTENTS, not paths. An absent side (a file that did not exist) is the empty string, which is what real Ansible's own callback normalizes None to.
func ContentDiff ¶ added in v0.44.0
ContentDiff builds a Diff for a file whose contents are changing, applying real Ansible's own binary and size checks to both sides. A nil before means the file did not exist yet.
Both sides are passed in rather than read here, because a module reaches its target through a Connection: the before content comes from the target, which may not be this machine.
The headers are the caller's to choose because real Ansible has NO single convention for them — each module names its sides its own way, measured against ansible-core 2.21.4:
lineinfile, blockinfile "<path> (content)" on both sides replace the bare path on both sides copy with content: the bare dest path on both sides copy with src: dest before, the SOURCE path after
A nil before side overrides beforeHeader and leaves it empty, which is what makes real Ansible print a bare "--- before" for a file that did not exist: naming it would claim there were contents to compare.
type Func ¶
type Func func(ctx context.Context, conn remoteexec.Connection, args map[string]any) (Result, error)
Func is a module's entry point. ctx carries cancellation/timeout; conn is already connected to the task's target; args is the task's parameters, already Jinja2-rendered by the caller (this package never templates anything itself). A non-nil error means the module could not determine an outcome at all (a transport failure); an expected failure is a Result with Failed=true and a nil error.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry maps module names to their Func.
func Default ¶
func Default() *Registry
Default returns a Registry pre-populated with this package's built-in module set.
func (*Registry) Get ¶
Get looks up a module by name. A fully-qualified collection name (FQCN) — "ansible.builtin.copy", "community.general.ufw" — resolves to the same entry as the bare name ("copy", "ufw") once the known collection prefix is stripped; see NormalizeName. This is a deliberate simplification, not full collection-scoped resolution: this registry is a single flat namespace (matching how this port's module set has no real cross-collection name collisions to disambiguate), so an FQCN with the WRONG collection prefix for a given module (e.g. "ansible.builtin.ufw", when ufw is actually community.general's) still resolves — real Ansible would instead fail "couldn't resolve module" in that case. In practice this only diverges from real Ansible on a playbook that already has an incorrect FQCN, which would already be broken there too.
func (*Registry) Register ¶
Register adds fn under name, replacing any existing module of the same name (so a caller can override a built-in with a custom module).
func (*Registry) Run ¶
func (r *Registry) Run(ctx context.Context, name string, conn remoteexec.Connection, args map[string]any) (Result, error)
Run looks up name and runs it, returning a Result{Failed:true} (not a Go error) for an unknown module name — matching Ansible's own "couldn't resolve module" being a task failure, not a crash.
type Result ¶
type Result struct {
Changed bool
Failed bool
// Skipped marks work a module declined to do rather than failed at —
// today, a command it will not run because this is a dry run. The
// engine reports it the way it reports any other skipped task.
Skipped bool
Msg string
// NoMsg says this module's result carries NO "msg" key at all,
// which is not the same as an empty one. Real's `file` returns
// state/mode/owner and no message, so `r.msg` there is an
// UNDEFINED variable; real's `command` returns an empty message,
// so `r.msg` is "". A port that always writes the key is lenient
// where real raises, and one that omits it whenever it is empty
// breaks command -- measured, both ways round. So the module that
// omits it says so.
NoMsg bool
Facts map[string]any
Extra map[string]any
// Diffs is what changed, for a run started with --diff. A module
// fills it only when InDiffMode says the caller asked; it is a
// slice because real Ansible's own callback accepts a list, for a
// module that touches more than one file.
Diffs []Diff
}
Result is a module's outcome: Ansible's changed/failed/msg triple, plus optional facts (merged into ansible_facts, e.g. by set_fact) and module-specific extra fields (e.g. command's stdout/stderr/rc).
func AddException ¶ added in v0.72.0
addException puts real's `exception` key on a FAILED result.
Real attaches it to every failing module result and to no successful one -- measured across fail, assert, file, command and find: four failures carried it, the one non-failure did not. It is not a per-module concern, which is why it lives here beside finalizeOutput and addPathInfo rather than in 566 modules.
The value is real's own. Where Python has no traceback to show, real emits the literal string below rather than omitting the key, and a Go port never has one -- so this is the honest value, not a stand-in. Measured: `r.exception` after a failing find with limit: 0 is exactly "(traceback unavailable)". It is EXPORTED because two modules do not go through Registry.Run at all: go-ansible/playbook implements `assert` and `debug: var:` in the engine, since both need the host's variables, and a result built there would otherwise be the only failing result without the key.
func Fail ¶
Fail returns a failed result. Modules normally return this alongside a non-nil error only when the failure is unexpected (a connection error, an unreadable file); an expected, well-formed failure (e.g. the `fail` module itself, or `assert` on a false condition) returns it with a nil error, since it is not the module's own execution that went wrong.
Source Files
¶
- acl.go
- aerospike_migrations.go
- airbrake_deployment.go
- aix_devices.go
- aix_filesystem.go
- aix_inittab.go
- aix_lvg.go
- aix_lvol.go
- alerta_customer.go
- ali_common.go
- ali_instance.go
- ali_instance_info.go
- aliases.go
- alternatives.go
- android_sdk.go
- ansible_galaxy_install.go
- apache2_mod_proxy.go
- apache2_module.go
- apk.go
- apt.go
- apt_key.go
- apt_repo.go
- apt_repository.go
- apt_rpm.go
- archive.go
- args.go
- assemble.go
- async.go
- async_status.go
- at.go
- authorized_key.go
- awall.go
- beadm.go
- bigpanda.go
- bitbucket.go
- blockinfile.go
- bootc_manage.go
- bower.go
- btrfs_info.go
- btrfs_subvolume.go
- bundler.go
- bzr.go
- campfire.go
- capabilities.go
- cargo.go
- checkmode.go
- circonus_annotation.go
- cisco_webex.go
- cloud_init_data_facts.go
- cloudflare_dns.go
- cobbler_sync.go
- cobbler_system.go
- collections.go
- command.go
- composer.go
- consul.go
- consul_acl.go
- consul_acl_bootstrap.go
- consul_agent_check.go
- consul_agent_service.go
- consul_auth_method.go
- consul_binding_rule.go
- consul_kv.go
- consul_kv_info.go
- consul_policy.go
- consul_role.go
- consul_session.go
- consul_token.go
- copr.go
- copy.go
- cpanm.go
- cron.go
- cronvar.go
- crypttab.go
- curlrequest.go
- dconf.go
- deb822_repository.go
- debconf.go
- debug.go
- decompress.go
- deploy_helper.go
- diff.go
- diffkey.go
- discord.go
- django_check.go
- django_command.go
- django_createcachetable.go
- django_dumpdata.go
- django_loaddata.go
- django_manage.go
- dnf.go
- dnf5.go
- dnf_config_manager.go
- dnf_versionlock.go
- dnsimple.go
- dnsimple_common.go
- dnsimple_info.go
- docs.go
- docs_generated.go
- docs_generated_a.go
- docs_generated_b.go
- docs_generated_c.go
- docs_generated_d.go
- docs_generated_e.go
- docs_generated_f.go
- docs_generated_g.go
- docs_generated_h.go
- docs_generated_i.go
- docs_generated_j.go
- docs_generated_k.go
- docs_generated_l.go
- docs_generated_m.go
- docs_generated_n.go
- docs_generated_o.go
- docs_generated_p.go
- docs_generated_r.go
- docs_generated_s.go
- docs_generated_t.go
- docs_generated_u.go
- docs_generated_v.go
- docs_generated_w.go
- docs_generated_x.go
- docs_generated_y.go
- docs_generated_z.go
- dpkg_divert.go
- dpkg_selections.go
- easy_install.go
- ejabberd_user.go
- elasticsearch_plugin.go
- emc_vnx_sg_member.go
- environment.go
- etcd3.go
- exec.go
- expandargs.go
- expect.go
- facter_facts.go
- fetch.go
- file.go
- file_remove.go
- filesize.go
- filesystem.go
- find.go
- firewalld.go
- firewalld_info.go
- flatpak.go
- flatpak_remote.go
- gandi_livedns.go
- gather_facts.go
- gconftool2.go
- gconftool2_info.go
- gem.go
- get_url.go
- getent.go
- gio_mime.go
- git.go
- git_config.go
- git_config_info.go
- github_common.go
- github_deploy_key.go
- github_issue.go
- github_key.go
- github_release.go
- github_repo.go
- github_secrets.go
- github_secrets_info.go
- github_webhook.go
- github_webhook_info.go
- gitlab_branch.go
- gitlab_common.go
- gitlab_dedicated_common.go
- gitlab_deploy_key.go
- gitlab_group.go
- gitlab_group_access_token.go
- gitlab_group_members.go
- gitlab_group_variable.go
- gitlab_hook.go
- gitlab_instance_variable.go
- gitlab_issue.go
- gitlab_label.go
- gitlab_merge_request.go
- gitlab_milestone.go
- gitlab_project.go
- gitlab_project_access_token.go
- gitlab_project_approvals.go
- gitlab_project_badge.go
- gitlab_project_members.go
- gitlab_project_variable.go
- gitlab_protected_branch.go
- gitlab_runner.go
- gitlab_user.go
- golang_package.go
- google_chat.go
- group.go
- grove.go
- gunicorn.go
- haproxy.go
- heroku_collaborator.go
- hg.go
- homebrew.go
- homebrew_cask.go
- homebrew_services.go
- homebrew_tap.go
- homectl.go
- honeybadger_deployment.go
- hostname.go
- hpilo_boot.go
- hpilo_common.go
- hpilo_info.go
- hponcfg.go
- htpasswd.go
- hwc_common.go
- hwc_ecs_instance.go
- hwc_evs_disk.go
- hwc_network_vpc.go
- hwc_smn_topic.go
- hwc_vpc_eip.go
- hwc_vpc_peering_connect.go
- hwc_vpc_port.go
- hwc_vpc_private_ip.go
- hwc_vpc_route.go
- hwc_vpc_security_group.go
- hwc_vpc_security_group_rule.go
- hwc_vpc_subnet.go
- ibm_sa_common.go
- ibm_sa_domain.go
- ibm_sa_host.go
- ibm_sa_host_ports.go
- ibm_sa_pool.go
- ibm_sa_vol.go
- ibm_sa_vol_map.go
- icinga2_downtime.go
- icinga2_feature.go
- icinga2_host.go
- idrac_common.go
- idrac_redfish_command.go
- idrac_redfish_config.go
- idrac_redfish_info.go
- ilo_common.go
- ilo_redfish_command.go
- ilo_redfish_config.go
- ilo_redfish_info.go
- imgadm.go
- infinity.go
- influxdb_database.go
- influxdb_query.go
- influxdb_retention_policy.go
- influxdb_user.go
- influxdb_write.go
- ini_file.go
- installp.go
- interfaces_file.go
- ip2location_info.go
- ip_netns.go
- ipa_common.go
- ipa_config.go
- ipa_dnsrecord.go
- ipa_dnszone.go
- ipa_getkeytab.go
- ipa_group.go
- ipa_hbacrule.go
- ipa_host.go
- ipa_hostgroup.go
- ipa_otpconfig.go
- ipa_otptoken.go
- ipa_pwpolicy.go
- ipa_role.go
- ipa_service.go
- ipa_subca.go
- ipa_sudocmd.go
- ipa_sudocmdgroup.go
- ipa_sudorule.go
- ipa_user.go
- ipa_vault.go
- ipbase_info.go
- ipify_facts.go
- ipinfoio_facts.go
- ipmi_boot.go
- ipmi_power.go
- iptables.go
- iptables_state.go
- ipwcli_dns.go
- iso_create.go
- iso_customize.go
- iso_extract.go
- java_cert.go
- java_keystore.go
- jboss.go
- jenkins_build.go
- jenkins_build_info.go
- jenkins_common.go
- jenkins_credential.go
- jenkins_job.go
- jenkins_job_info.go
- jenkins_node.go
- jenkins_plugin.go
- jenkins_script.go
- jira.go
- kdeconfig.go
- kea_command.go
- kernel_blacklist.go
- keycloak_authentication.go
- keycloak_authentication_required_actions.go
- keycloak_authentication_v2.go
- keycloak_authz_authorization_scope.go
- keycloak_authz_custom_policy.go
- keycloak_authz_permission.go
- keycloak_authz_permission_info.go
- keycloak_client.go
- keycloak_client_rolemapping.go
- keycloak_client_rolescope.go
- keycloak_clientscope.go
- keycloak_clientscope_rolemappings.go
- keycloak_clientscope_type.go
- keycloak_clientsecret_info.go
- keycloak_clientsecret_regenerate.go
- keycloak_clienttemplate.go
- keycloak_common.go
- keycloak_component.go
- keycloak_component_info.go
- keycloak_group.go
- keycloak_identity_provider.go
- keycloak_json_helpers.go
- keycloak_realm.go
- keycloak_realm_info.go
- keycloak_realm_key.go
- keycloak_realm_keys_metadata_info.go
- keycloak_realm_localization.go
- keycloak_realm_rolemapping.go
- keycloak_realm_users_info.go
- keycloak_role.go
- keycloak_user.go
- keycloak_user_execute_actions_email.go
- keycloak_user_federation.go
- keycloak_user_rolemapping.go
- keycloak_userprofile.go
- keyring.go
- keyring_info.go
- kibana_plugin.go
- known_hosts.go
- kopia_repository.go
- kopia_repository_info.go
- krb_ticket.go
- launchd.go
- layman.go
- lbu.go
- ldap_attrs.go
- ldap_common.go
- ldap_entry.go
- ldap_inc.go
- ldap_passwd.go
- ldap_search.go
- lineinfile.go
- lineinfile_apply.go
- linode.go
- linode_v4.go
- listen_ports_facts.go
- lldp_facts.go
- locale_gen.go
- logrotate.go
- logstash_plugin.go
- lvg.go
- lvg_rename.go
- lvm_pv.go
- lvm_pv_move_data.go
- lvol.go
- lxc_container.go
- lxd_container.go
- lxd_profile.go
- lxd_project.go
- lxd_storage_pool_info.go
- lxd_storage_volume_info.go
- macports.go
- mail.go
- make.go
- mas.go
- mattermost.go
- maven_artifact.go
- memset_common.go
- memset_dns_reload.go
- memset_memstore_info.go
- memset_server_info.go
- memset_zone.go
- memset_zone_domain.go
- memset_zone_record.go
- mksysb.go
- modprobe.go
- module.go
- monit.go
- mount.go
- mount_facts.go
- mqtt.go
- mssql_db.go
- mssql_script.go
- nagios.go
- newrelic_deployment.go
- nexmo.go
- nginx_status_info.go
- nictagadm.go
- nmcli.go
- nomad_job.go
- nomad_job_info.go
- nomad_token.go
- nosh.go
- npm.go
- nsupdate.go
- odbc.go
- ohai.go
- omapi_host.go
- one_common.go
- one_host.go
- one_image.go
- one_image_info.go
- one_service.go
- one_template.go
- one_vm.go
- one_vnet.go
- onepassword_info.go
- online.go
- open_iscsi.go
- openbsd_pkg.go
- opendj_backendprop.go
- openwrt_init.go
- opkg.go
- osx_defaults.go
- ovh_common.go
- ovh_ip_failover.go
- ovh_ip_loadbalancing_backend.go
- ovh_monthly_billing.go
- ownership.go
- pacemaker_cluster.go
- pacemaker_info.go
- pacemaker_resource.go
- pacemaker_stonith.go
- package.go
- package_facts.go
- packet_common.go
- packet_device.go
- packet_ip_subnet.go
- packet_project.go
- packet_sshkey.go
- packet_volume.go
- packet_volume_attachment.go
- pacman.go
- pacman_key.go
- pagerduty.go
- pam_limits.go
- pamd.go
- parted.go
- patch.go
- pathinfo.go
- pause.go
- pear.go
- pids.go
- ping.go
- pip.go
- pip_package_info.go
- pipx.go
- pipx_info.go
- pkg5.go
- pkg5_publisher.go
- pkgin.go
- pkgmgr.go
- pkgng.go
- pkgutil.go
- pmem.go
- pnpm.go
- portage.go
- portinstall.go
- pritunl_common.go
- pritunl_org.go
- pritunl_org_info.go
- pritunl_user.go
- pritunl_user_info.go
- pulp_repo.go
- puppet.go
- pushover.go
- python_requirements_info.go
- raw.go
- read_csv.go
- reboot.go
- redfish_command.go
- redfish_common.go
- redfish_config.go
- redfish_goredfish.go
- redfish_goredfish_command.go
- redfish_goredfish_config.go
- redfish_goredfish_info.go
- redfish_info.go
- redfishtool_common.go
- redhat_subscription.go
- redis.go
- redis_data.go
- redis_data_incr.go
- redis_data_info.go
- redis_info.go
- registry.go
- replace.go
- rhel_facts.go
- rhel_rpm_ostree.go
- rhsm_release.go
- rhsm_repository.go
- riak.go
- rocketchat.go
- rollbar_deployment.go
- rpm_key.go
- rpm_ostree_pkg.go
- rpm_ostree_upgrade.go
- rundeck_acl_policy.go
- rundeck_common.go
- rundeck_job_executions_info.go
- rundeck_job_run.go
- rundeck_project.go
- runit.go
- say.go
- scaleway_common.go
- scaleway_compute.go
- scaleway_compute_private_network.go
- scaleway_container.go
- scaleway_container_info.go
- scaleway_container_namespace.go
- scaleway_container_namespace_info.go
- scaleway_container_registry.go
- scaleway_container_registry_info.go
- scaleway_database_backup.go
- scaleway_function.go
- scaleway_function_info.go
- scaleway_function_namespace.go
- scaleway_function_namespace_info.go
- scaleway_image_info.go
- scaleway_ip.go
- scaleway_ip_info.go
- scaleway_lb.go
- scaleway_organization_info.go
- scaleway_private_network.go
- scaleway_security_group.go
- scaleway_security_group_info.go
- scaleway_security_group_rule.go
- scaleway_server_info.go
- scaleway_snapshot_info.go
- scaleway_sshkey.go
- scaleway_user_data.go
- scaleway_volume.go
- scaleway_volume_info.go
- script.go
- seboolean.go
- sefcontext.go
- selinux.go
- selinux_permissive.go
- selogin.go
- sendgrid.go
- seport.go
- serverless.go
- service_facts.go
- set_stats.go
- setfact.go
- setup.go
- shellquote.go
- shutdown.go
- simpleinit_msb.go
- sl_vm.go
- slackpkg.go
- slurp.go
- smartos_image_info.go
- snap.go
- snap_alias.go
- snap_connect.go
- snmp_facts.go
- solaris_zone.go
- sorcery.go
- spectrum_common.go
- spectrum_device.go
- spectrum_model_attrs.go
- ss_3par_cpg.go
- ssh_config.go
- sssd_info.go
- stacki_host.go
- stat.go
- statdict.go
- statsd.go
- subversion.go
- sudoers.go
- supervisorctl.go
- svc.go
- svr4pkg.go
- swdepot.go
- swupd.go
- synchronize.go
- sysctl.go
- syslogger.go
- syspatch.go
- sysrc.go
- systemd.go
- systemd_creds_common.go
- systemd_creds_decrypt.go
- systemd_creds_encrypt.go
- systemd_info.go
- sysupgrade.go
- sysvinit.go
- targetenv.go
- telegram.go
- tempfile.go
- template.go
- terraform.go
- timezone.go
- twilio.go
- udm_common.go
- udm_dns_record.go
- udm_dns_zone.go
- udm_group.go
- udm_share.go
- udm_user.go
- ufw.go
- unarchive.go
- uptimerobot.go
- uri.go
- uri_result.go
- urpmi.go
- usb_facts.go
- user.go
- utm.go
- uv_python.go
- validate_argument_spec.go
- vdo.go
- vertica.go
- vertica_configuration.go
- vertica_info.go
- vertica_role.go
- vertica_schema.go
- vertica_user.go
- vmadm.go
- wait_for.go
- wait_for_connection.go
- wakeonlan.go
- wakeonlan_unix.go
- write_binary_file.go
- xattr.go
- xbps.go
- xcc_redfish_command.go
- xdg_mime.go
- xenserver_common.go
- xenserver_facts.go
- xenserver_guest.go
- xenserver_guest_info.go
- xenserver_guest_powerstate.go
- xfconf.go
- xfconf_info.go
- xfs_quota.go
- xml.go
- xml_info.go
- yarn.go
- yum_repository.go
- yum_versionlock.go
- zfs.go
- zfs_delegate_admin.go
- zfs_facts.go
- znode.go
- zpool.go
- zpool_facts.go
- zypper.go
- zypper_repository.go
- zypper_repository_info.go
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
countsites
command
Command countsites counts occurrences of a literal across the .go files of a directory, separating the files that ship from the tests.
|
Command countsites counts occurrences of a literal across the .go files of a directory, separating the files that ship from the tests. |
|
gendocs
Package gendocs extracts each registered module's Go doc comment (already written on its module<Name> function — this project's convention has always been to document arguments and every deviation from real Ansible's behavior there) and produces the docs_generated*.go sources: a map from each module's registered name to that comment text, for ansible-doc to print without needing the source tree at runtime.
|
Package gendocs extracts each registered module's Go doc comment (already written on its module<Name> function — this project's convention has always been to document arguments and every deviation from real Ansible's behavior there) and produces the docs_generated*.go sources: a map from each module's registered name to that comment text, for ansible-doc to print without needing the source tree at runtime. |
|
gendocs/cmd/gendocs
command
Command gendocs writes the docs_generated*.go sources for the modules package.
|
Command gendocs writes the docs_generated*.go sources for the modules package. |