al_ansible_package
Repository Ansible packages with mapped runtime files and AL commands.
al_ansible_package
load("@com_alwaldend_src//tools/ansible/rules:al_ansible_package.bzl", "al_ansible_package")
al_ansible_package(name, srcs, configs, plugin_labels, args, packaged_srcs, renames, srcs_name,
files_name, binary_visibility, **kwargs)
Package sources and expose one or more Ansible playbook commands.
PARAMETERS
| Name | Description | Default Value |
|---|
| name | Command prefix; the packaged executable is <name>_bin. | none |
| srcs | Files to map relative to the caller’s package. | none |
| configs | AL configuration dependencies for command wrappers. | [] |
| plugin_labels | AL plugin selectors for command wrappers. | {} |
| args | Command suffix to Ansible argument list, without the executable. Defaults to the inventory.yaml/playbook_deploy.yaml invocation. | None |
| packaged_srcs | Mapped source groups; defaults to the files_name target. | None |
| renames | Destination overrides for srcs. | {} |
| srcs_name | Combined runtime source target name. | "srcs" |
| files_name | Mapped source target name. | "srcs_files" |
| binary_visibility | Optional visibility for the packaged executable. | None |
| kwargs | Common target attributes for the package and commands. | none |