Skip to content

Work around ansible-core 2.20 breaking string conditionals in molecule-docker#19

Open
tizpuppi wants to merge 4 commits intomainfrom
fix-pipeline
Open

Work around ansible-core 2.20 breaking string conditionals in molecule-docker#19
tizpuppi wants to merge 4 commits intomainfrom
fix-pipeline

Conversation

@tizpuppi
Copy link
Copy Markdown
Contributor

Summary

  • ansible-core 2.20 (pulled in by ansible 13.x) now requires conditionals to return booleans, rejecting the when: (lookup('env', 'HOME')) string conditional in molecule-docker 2.1.0's built-in playbooks
  • Sets ANSIBLE_ALLOW_BROKEN_CONDITIONALS: "True" in the CI env as a workaround until molecule-docker ships a fix

Test plan

  • Verify all Molecule matrix jobs (ubuntu2004, ubuntu2204, debian10, debian11, debian12) pass

🤖 Generated with Claude Code

tizpuppi and others added 4 commits March 12, 2026 16:38
…e-docker

molecule-docker 2.1.0 uses `when: (lookup('env', 'HOME'))` in its destroy/create
playbooks, which ansible-core 2.20 rejects as conditionals must now return booleans.
Set ANSIBLE_ALLOW_BROKEN_CONDITIONALS to unblock the pipeline until molecule-docker
ships a fix.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ansible-core 2.20 uses Python 3.8+ syntax in its modules (positional-only
parameters), which is incompatible with debian10's Python 3.7. Debian 10
reached EOL in June 2024.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ansible-core 2.20 requires Python 3.9+ on managed nodes. Ubuntu 20.04
ships Python 3.8.10 which no longer meets this requirement.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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