Reference

Environment variables

What instamix reads from the environment. A variable wins over the config files; the command line wins over both.

For a script#

VariableWhat it does
INSTAMIX_PROFILEthe profiles to activate, as -p does
INSTAMIX_ENV1: run ansible from an environment built with uv, as --env does
INSTAMIX_JSONL1: write events on stdout, as --jsonl does
INSTAMIX_NO_CONFIG1: ignore both config files
INSTAMIX_UVthe uv to build environments with, when it is not on PATH
SOURCE_DATE_EPOCHthe date of the entries of an archive that generate writes

The proxy#

VariableWhat it does
INSTAMIX_PROXYfetch collections, roles and pip packages through this proxy
INSTAMIX_PROXY_LISTthe list to fetch through; wins over the script’s proxy_list()
INSTAMIX_PROXY_DBthe lists database (default ~/.instamix/proxy.db)
INSTAMIX_PROXY_CACHEwhere files are cached (default ~/.cache/instamix/proxy)
INSTAMIX_PROXY_GALAXYthe Galaxy, or Automation Hub, the proxy fetches from
INSTAMIX_PROXY_PYPIthe simple index the proxy fetches from

Repositories and plays#

VariableWhat it does
INSTAMIX_REPOSwhere imix repo add keeps the repositories it clones (default ~/.local/share/instamix/repos)
INSTAMIX_PLAYS_PATHdirectories with scripts apart from the repositories, separated by colons; wins over plays.path

The hub#

VariableWhat it does
INSTAMIX_HUBtake the hosts, and what groups and hosts set, from this hub: its URL, or the path of its database
INSTAMIX_HUB_TEAMthe team whose inventory it is
INSTAMIX_HOMEwhere the hub keeps its database (default ~/.instamix)
DATABASE_URLthe hub’s database, when it is not that file
INSTAMIX_RUN_TIMEOUTseconds after which a run the hub started itself fails (default 7200)
INSTAMIX_CLOCKWORKclockwork’s URL; unset, the hub runs things itself
INSTAMIX_CLOCKWORK_TOKEN, INSTAMIX_CLOCKWORK_TOKEN_FILEwhat the hub bears to clockwork
INSTAMIX_CLOCKWORK_POLLseconds between the hub’s looks at a job (default 2)

In the pod#

VariableWhat it does
INSTAMIX_PLAY_REPOSgit URLs of the playbook repositories, separated by spaces; cloned when the pod starts
INSTAMIX_PLAYS, INSTAMIX_SSHyour scripts and your key, mounted in by deploy/compose.yaml

The editor#

VariableWhat it does
INSTAMIX_ANSIBLE_SERVERwhere the Ansible language server is, for imix lsp

Development#

VariableWhat it does
INSTAMIX_NETWORK_TESTS1: also run the tests that build a real environment with uv

The source of this page

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