Work around ansible-core 2.20 breaking string conditionals in molecule-docker#19
Open
Work around ansible-core 2.20 breaking string conditionals in molecule-docker#19
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ansible-core 2.20(pulled in byansible 13.x) now requires conditionals to return booleans, rejecting thewhen: (lookup('env', 'HOME'))string conditional inmolecule-docker 2.1.0's built-in playbooksANSIBLE_ALLOW_BROKEN_CONDITIONALS: "True"in the CI env as a workaround until molecule-docker ships a fixTest plan
🤖 Generated with Claude Code