Ansible Role: Audita
Installs Audita from source on
Ubuntu 26.04 (x86_64 or aarch64). The role requires gathered facts and
uses privilege escalation for installation and managed application state.
Variables
audita_version: v4.3.0
audita_repository_url: https://gitea.maximumdirect.net/eric/audita.git
audita_source_dir: /usr/local/src/audita
audita_binary_path: /usr/local/bin/audita
audita_manage_build_dependencies: true
audita_go_snap_channel: 1.27/stable
audita_go_binary: /snap/bin/go
audita_config_path: /usr/local/etc/audita/config.yml
audita_config_owner: root
audita_config_group: root
audita_config_directory_mode: "0755"
audita_config_file_mode: "0644"
audita_config_version: 3
audita_config_imports: null
audita_promptkit_backends: null
audita_promptkit_profiles: null
audita_promptkit_prompts: null
audita_promptkit_collections: null
audita_promptkit_schema_root: null
audita_pipeline_stages: null
audita_glossary_collections: null
audita_glossaries: null
audita_protected_terms: null
audita_llm_proposal_profile: null
audita_llm_correction_repair_profile: null
audita_llm_correction_repair_attempts: null
audita_output_schema: null
audita_llm_validation_profile: null
audita_llm_transient_retries: null
audita_llm_operation_timeout: null
audita_validation_max_prompt_tokens: null
audita_chunking_target_sections: null
audita_chunking_max_section_tokens: null
audita_chunking_min_section_tokens: null
audita_normalization_max_segment_gap: null
audita_normalization_ellipsis_gap: null
audita_normalization_max_segment_duration: null
audita_normalization_max_segment_tokens: null
audita_context_description: null
audita_reporting_enabled: null
audita_reporting_stdout_dir: null
audita_diagnostics_work_dir: null
The role builds the selected revision with audita_go_binary and rebuilds when
the checkout changes or the binary is missing. When dependency management is
disabled, callers provide Git and a compatible Go executable (Go 1.27 or newer
for v4.3.0). Configuration owner, group, and modes are configurable.
The schema marker is always rendered. Optional settings are omitted when null;
non-null falsey values and nested nulls are preserved. A minimal document with
only version: 3 validates offline but processing requires suitable profiles
and, for glossary correction, selected entries. The earlier v2 requirement for
a backend and proposal profile on every invocation no longer applies.
For example, inventory can supply native resources, ordered stages, and vocabulary:
local_backends:
- id: local
endpoint: http://127.0.0.1:11434/v1
local_profiles:
- id: local-proposal
backend: local
model: example-model
first_stages:
- id: punctuation
module: grammar
llm: {proposal_profile: local-proposal}
extra_stages: []
local_glossaries:
people:
entries:
- {id: mira, name: Mira, category: person}
extra_glossaries: {}
audita_promptkit_backends: "{{ local_backends }}"
audita_promptkit_profiles: "{{ local_profiles }}"
audita_pipeline_stages: "{{ first_stages + extra_stages }}"
audita_glossary_collections: "{{ local_glossaries | combine(extra_glossaries) }}"
audita_glossaries: [people]
Root selections can be overridden per stage; explicit empty stage or vocabulary
lists are retained. An empty stage list selects normalization without model work.
Native collection resource IDs use namespace/id. Imports are also supported:
audita_config_imports:
- path: fragments/audita.yml
required: true
Callers deploy referenced fragments and resources, whose paths are relative to their declaring source. A ConfigKit overlay selected at invocation is distinct from a PromptKit LLM profile. The role does not manage arbitrary assets, secrets, services, or runtime invocations. Credentials are environment variable names, not values; see configuration and secrets bootstrap.
Inline glossary_collections use Audita's application vocabulary, including
optional instructions. Shared runtime glossary files use a different envelope
and must be passed explicitly using --glossary-file; they are not discovered
automatically. See the v4.3 migration guide.
Migrating to v4
Replace audita_backends with ID-bearing audita_promptkit_backends records,
and audita_profiles_dir with native profiles or caller-owned imports. Replace
audita_pipeline_modules with ordered audita_pipeline_stages records. Remove
audita_thresholds_glossary, audita_thresholds_homophones,
audita_thresholds_spoken_word, and audita_thresholds_grammar; confidence
scores and thresholds have no replacement. Replace audita_diagnostics_debug
with the runtime --debug flag. See the schema 3 migration guide.
Remove audita_llm_repair_attempts: structural output repair budgets now belong
to prompts. Semantic correction repair uses the separate
audita_llm_correction_repair_profile and audita_llm_correction_repair_attempts
settings; transient retries are a third, distinct budget. Prompt replacements
must retain Audita's complete compatible output contract. See the
v4.1 migration guide.
Use native audita config validate, audita config show, and
audita promptkit show for offline inspection. Provider-contacting preflight and
model processing are caller workflows, not role installation checks.
Example
- hosts: audita_hosts
roles:
- role: ansible-role-audita
Validation
tests/integration installs the pinned collection, runs syntax and production
lint checks, validates and inspects synthetic configuration offline, verifies
version selection and custom-Go recovery, and requires clean repeated convergence.
It does not validate provider access, model output, or suite compatibility.