Skip to content

fix(matrix): correct vars block to be a dict instead of list of dicts#28

Open
0cwa wants to merge 1 commit into
bonfirelink:masterfrom
0cwa:fix/matrix-playbook-syntax
Open

fix(matrix): correct vars block to be a dict instead of list of dicts#28
0cwa wants to merge 1 commit into
bonfirelink:masterfrom
0cwa:fix/matrix-playbook-syntax

Conversation

@0cwa

@0cwa 0cwa commented Apr 29, 2026

Copy link
Copy Markdown

Fixes a pre- existing bug surfaced by ansible-playbook --syntax-check:

ERROR: Vars in a Play must be specified as a dictionary.
playbooks/matrix.yml:11:5

The vars: block was written as a list of single-key dicts (a copy/paste hangover from the roles: list above it). Re-indented so each var is a top-level key in the dict, and added a name: to the play.

** No semantic change** — vault values preserved verbatim.

Verified with

yamllint -c .yamllint.yaml playbooks/matrix.yml
ansible-playbook --syntax-check -i hosts/prod playbooks/matrix.yml

Stacking

First in the chain. Land this before chore/ci-lint, feat/docker-role, and the feat/funkwhale-* PRs — they all need a syntax-clean playbooks/matrix.yml so the new lint workflow stays green.
moz-extension://5084ac1a-3029-49cd-a02f-37beec949c9f/index.html

Ansible 2.10+ rejects 'vars: [- key: value, ...]' under a play with:
  ERROR: Vars in a Play must be specified as a dictionary.

The dashes were a copy/paste hangover from the 'roles:' list above.
Re-indent the body so each var is a top-level key in the dict.

No semantic change. Verified with:
  yamllint -c .yamllint.yaml playbooks/matrix.yml
  ansible-playbook --syntax-check -i hosts/prod playbooks/matrix.yml
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