Reference

Events

What --jsonl writes: one JSON object per line on stdout, each with an event field.

Every command takes --jsonl (before or after the command name), or reads INSTAMIX_JSONL=1. stdout then carries one JSON object per line, each with an event field; stderr keeps its human messages, and the exit code is unchanged. run --record FILE writes the same events to a file, for imix replay.

Where they come from#

EventFrom
profilesshow
fileshow, cat, generate
removedgenerate into a directory
generatedgenerate
change, diffdiff
problem, checkslint
targettest --list
profileprofiles
stage, tag, group, variabledescribe
exec, output, exitedanything that runs ansible, galaxy, lint or molecule
play, task, result, recapa run: run and container
hiddenfiles left out by inactive profiles
skipped, script, wroteimport, init
requirementdoctor
envenv
runtimerun, install, lint and test, before they start anything
errorany failure

change#

A file generate would change.

FieldHoldsWhat it is
diffstringA unified diff.
pathstring
always there
statusadded | modified | removed
always there

checks#

The checks finished.

FieldHoldsWhat it is
countinteger
always there
problemsinteger
always there

container#

The image and engine container runs ansible with, before it does.

FieldHoldsWhat it is
enginestring
always there
hintstringWhat in the script names the image, when it does.
imagestring
always there

diff#

diff finished.

FieldHoldsWhat it is
changedboolean
always there
deststring
always there

env#

The environment env built or reused.

FieldHoldsWhat it is
ansiblestring | null
always there
collectionsintegerGalaxy collections installed in it.
createdboolean
always there
pathstring
always there
pythonstring | null
always there
rolesintegerGalaxy roles installed in it.

error#

The command failed; the exit code is not 0.

FieldHoldsWhat it is
messagestring
always there

exec#

instamix started a program.

FieldHoldsWhat it is
cmdarray of string
always there
cwdstring
always there

exited#

The program exited.

FieldHoldsWhat it is
cmdarray of string
always there
statusinteger
always there

file#

A file of the tree.

FieldHoldsWhat it is
base64stringThe contents, if not UTF-8 (cat).
defaultbooleanAdded by instamix (inventory, ansible.cfg, requirements.yml), not declared by the script.
modeinteger | null
always there
Unix permission bits, or null for the default (0644).
pathstring
always there
sha256string
always there
sizeinteger
always there
textstringThe contents, if UTF-8 (cat).

generated#

generate finished.

FieldHoldsWhat it is
compressiongz | bz2 | xz | none
deststring
always there
filesinteger
always there
formatdirectory | tar
always there
sha256stringOf the archive.

group#

A host group and what its hosts are for (describe).

FieldHoldsWhat it is
childrenarray of string
always there
descriptionstring
always there
hostsarray of string
always there
namestring
always there
varsobject
always there

hidden#

Files left out because their profiles are not active.

FieldHoldsWhat it is
filesinteger
always there
profilesarray of string
always there

image#

The container image the script asks for.

FieldHoldsWhat it is
imagestring
always there
sourcestring
always there

output#

A line the program wrote.

FieldHoldsWhat it is
linestring
always there
streamstdout | stderr
always there

play#

A play started (run).

FieldHoldsWhat it is
hostsarray of string
always there
idstring
always there
namestring
always there

problem#

A check found a problem.

FieldHoldsWhat it is
checkstring
always there
messagestring
always there

profile#

A profile the script mentions.

FieldHoldsWhat it is
activeboolean
always there
builtinboolean
always there
filesinteger
always there
namestring
always there

profiles#

The active profiles.

FieldHoldsWhat it is
activearray of string
always there

recap#

One host’s totals at the end of a run.

FieldHoldsWhat it is
changedinteger
always there
failuresinteger
always there
hoststring
always there
ignoredinteger
always there
okinteger
always there
rescuedinteger
always there
skippedinteger
always there
unreachableinteger
always there

record#

A recording began (–record): the first event of the file.

FieldHoldsWhat it is
argvarray of string
always there
atstring
always there
When, as an ISO 8601 time (UTC).
scriptstring
always there

removed#

A file generate removed because the script no longer declares it.

FieldHoldsWhat it is
pathstring
always there

requirement#

A runtime requirement, checked against this machine (doctor).

FieldHoldsWhat it is
foundstring | null
always there
The version, or path for a command, found here.
kindansible | python | pip | command
always there
namestring
always there
okboolean
always there
specstring
always there
A version requirement (>=2.16,<2.19), or empty.

result#

What a task did on one host, or for one loop item (run).

FieldHoldsWhat it is
actionstring
always there
delegated_tostring
hoststring
always there
ignoredbooleanA failure ignore_errors lets through.
itemanyThe loop item this result is for.
itemsintegerThe number of loop items, on the result that sums a loop up; each item had its own event.
resultobject
always there
The module’s result, as ansible’s callbacks see it: without internal keys and the module invocation, and censored for no_log.
statusok | changed | failed | skipped | unreachable
always there
taskstring
always there
task_idstring
always there

runtime#

What a command that starts ansible runs it with, before it does.

FieldHoldsWhat it is
ansiblestring | null
always there
ansible_playbookstring | null
always there
Where ansible-playbook is; null: nowhere.
basestringThe base the environment starts from.
environmentstring | null
always there
The environment in use (–env), or null: PATH.
proxystringWhere galaxy and pip content comes through.
pythonstring | null
always there
settingsarray of stringThe config files in effect, the weakest first.

script#

The script import wrote.

FieldHoldsWhat it is
sourcestring
always there

skipped#

A file import left out because it may hold secrets.

FieldHoldsWhat it is
pathstring
always there
reasonstring
always there

stage#

A stage of the script (describe): a playbook under a tag of its name.

FieldHoldsWhat it is
descriptionstring
always there
hostsarray of stringWhat the plays of its playbook target.
namestring
always there
playbookstring
always there
sourcestringThe script that described it.
tagsarray of string
always there
whenanyThe condition the stage runs under.

tag#

A tag and what it runs (describe).

FieldHoldsWhat it is
descriptionstring
always there
namestring
always there
stageboolean
always there
It is the tag of a stage.

target#

Something test can run.

FieldHoldsWhat it is
namestring
always there
pathstring
always there
runnermolecule | ansible-test | playbook
always there

task#

A task or handler started (run).

FieldHoldsWhat it is
actionstring
always there
handlerboolean
always there
idstring
always there
namestring
always there
pathstringWhere the task is, file:line.
rolestring

variable#

A variable the playbooks need, and its shape (describe).

FieldHoldsWhat it is
defaultanyWhat the group’s group_vars give it.
descriptionstring
always there
groupstring
always there
namestring
always there
requiredboolean
always there
The script has to set it: it has no default.
schemaobjectThe shape as JSON Schema, as far as one says it.
shapestring
always there
The shape, as glom’s Match prints it.
sourcestringThe script that described it.

wrote#

A script was written.

FieldHoldsWhat it is
pathstring
always there

The source of this page

    Type to search. ↑ ↓ to move, enter to open.