Skip to content

fix: support for Debian 12#118

Merged
dleehr merged 2 commits intoansible:mainfrom
VedantMadane:fix-debian-12-support
Mar 6, 2026
Merged

fix: support for Debian 12#118
dleehr merged 2 commits intoansible:mainfrom
VedantMadane:fix-debian-12-support

Conversation

@VedantMadane
Copy link
Copy Markdown
Contributor

This PR addresses #63 by:

  1. Passing --break-system-packages to the pip module when installing additional python packages. This is necessary for Debian 12 (PEP 668) which marks the system environment as externally managed.
  2. Updating the molecule tests to use debian:12 instead of debian:11 in Containerfile.j2 and molecule.yml.

Fixes #63

This adds --break-system-packages to pip and updates molecule tests to use debian:12. Fixes ansible#63
Copy link
Copy Markdown

@dleehr dleehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @VedantMadane, appreciate the contribution! Thanks for updating the Debian version in the molecule configurations and updating the role to fix on that version.

I see that we need to provide --break-system-packages to pip on Debian, so my request here is that we only set that flag when we're running on Debian. Please let me know if you're able to make that change and I'll be happy to move this along!

Comment thread roles/setup/tasks/python_packages.yml Outdated
Comment thread roles/setup/tasks/python_packages.yml
@dleehr dleehr enabled auto-merge (squash) March 5, 2026 20:16
@dleehr dleehr merged commit caebd79 into ansible:main Mar 6, 2026
5 checks passed
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.

Support for Debian 12

3 participants