Skip to content

fix(developer): install Playwright and its browsers - #125

Merged
catinspace-au merged 1 commit into
mainfrom
fix/playwright-runtime-libs
Nov 3, 2026
Merged

catinspace-au merged 1 commit into
mainfrom
fix/playwright-runtime-libs

Conversation

@catinspace-au

Copy link
Copy Markdown
Contributor

Ubuntu and Debian dev boxes get Playwright and its browser dependencies automatically.

  • The CLI installs as an unpinned uv tool and upgrades on each converge.
  • On Ubuntu and Debian, playwright install-deps adds system libraries from Playwright's list for the host release. A --dry-run probe keeps a converged host at changed=0.
  • Chromium, Firefox and WebKit install as the target user into ~/.cache/ms-playwright.
  • The converge fails if libavif or libmanette is missing after install-deps, even if Playwright drops either dependency.
  • Fedora gets the CLI plus libavif and libmanette from dnf. Playwright does not support Fedora, so no install-deps or browsers there.

Tag: playwright. Playbook syntax and ansible-lint checks pass. Local dpkg-query assert checks pass for both success and failure cases. The apt install-deps path requires root and has no local or CI test coverage.

Playwright defines dependencies per release. The role leaves the apt package list to Playwright. The CLI installs through uv without a version pin.

On apt hosts, `playwright install-deps` installs system libraries. Its `--dry-run` check keeps converged hosts reporting no change. Browsers install as the target user.

On apt hosts, the run fails after install-deps if libavif or libmanette is missing. This catches missing WebKit libraries if a future Playwright release drops either dependency.

Playwright does not support Fedora. Fedora gets the CLI through uv and libavif and libmanette from dnf.

Tag: playwright.
@catinspace-au
catinspace-au force-pushed the fix/playwright-runtime-libs branch from 7c76722 to c375354 Compare November 3, 2026 09:07
@catinspace-au
catinspace-au merged commit 742c4c2 into main Nov 3, 2026
18 checks passed
@catinspace-au
catinspace-au deleted the fix/playwright-runtime-libs branch November 3, 2026 09:13
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