Skip to content

fix: a form without an inventory gives ansible none - #44

Merged
blaipr merged 1 commit into
mainfrom
fix/empty-inventory
Nov 30, 2026
Merged

blaipr merged 1 commit into
mainfrom
fix/empty-inventory

Conversation

@blaipr

@blaipr blaipr commented Nov 30, 2026

Copy link
Copy Markdown
Member

What this changes

A form without an inventory (inventory: "", as the docker repository's demo forms have) reaches the Runner as __inventory__: "", and Args passed it on as -i "". Ansible reads that as the job's working folder, so every job printed a dozen "Unable to parse .../playbook/.yaml as an inventory source" warnings, one per file of the playbook's folder. An empty inventory now gives no -i, as the controller's own Runner (buildAnsibleArgs in server/src/rte/ansible-core.js) does.

Found while upgrading a 7.8.0 compose install to the 7.9.0 release candidate: the same forms ran without the warnings on the Node RTE.

Checklist

  • Branch is named <type>/<description> and the title is a Conventional Commit
  • gofmt -l . prints nothing, and go vet ./... and go test ./... pass
  • Ran a job through it against a controller, or the change does not affect it
  • A change of internal/socket/ follows a change of the controller's socket contract (none)

@blaipr
blaipr merged commit aca5274 into main Nov 30, 2026
8 checks passed
@blaipr
blaipr deleted the fix/empty-inventory branch November 30, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant