Run from a working copy
Inspect what will be uploaded and use an existing inventory on a worker.
You need the Tester role on the team where the job will be recorded. By default this is the inventory’s team. Use --team to choose another team you can test in.
From your working copy, list the resources you can use and preview the upload:
glodrik inventories
glodrik environments
glodrik run playbooks/site.yml -i lab --ee creator-ee --list-files
In a Git repository, the upload includes tracked files and unignored new files, including uncommitted changes. Outside a Git repository, it includes the working files except excluded directories such as common caches. The compressed upload limit is 50 MB. Check the list for credentials, local configuration, and large files before running.
glodrik run playbooks/site.yml -i lab --ee creator-ee -l web1 -e version=1.2
Use --credential for hosts without an assigned machine credential, and repeat --vault-credential as needed. Use --delegate to declare delegation targets where required. Use --no-requirements to skip installing the uploaded copy’s roles and collection requirements when the execution environment already includes them.
Save repository defaults
Create .glodrik.toml in the working copy. Flags override values in the nearest configuration file.
[run]
inventory = "lab"
ee = "creator-ee"
limit = "test*"
exclude = ["docs/", "*.iso"]
timeout = 1800
Follow output in the terminal. Press Ctrl+C once to request cancellation. Find the run in Glodrik with External and Test run labels. Test runs cannot be relaunched or send notifications, and Glodrik removes the uploaded copy when the run ends.
