forked from geerlingguy/ansible-role-pip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from barnabasbusa/master
fix: remove EXERTNALLY-MANAGED on Debian12 geerlingguy#58
- Loading branch information
Showing
3 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
# Remove EXTERNALLY-MANAGED file if we're on Debian12 | ||
# Related issue: https://github.com/geerlingguy/ansible-role-pip/issues/57 | ||
- name: Get python3 version installed | ||
ansible.builtin.command: python3 --version | ||
register: py3ver | ||
|
||
- name: Remove EXTERNALLY-MANAGED | ||
ansible.builtin.file: | ||
path: /usr/lib/python3.11/EXTERNALLY-MANAGED | ||
state: absent | ||
when: py3ver is defined and py3ver.stdout.find("3.11") != -1 |
This file contains 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