Skip to content

Commit

Permalink
Merge pull request #69 from ShaneMcC/issue-66
Browse files Browse the repository at this point in the history
Fix for externally-managed python on later ubuntu/debian installs.
  • Loading branch information
geerlingguy authored Nov 11, 2024
2 parents 9246878 + 258a924 commit 5b1f472
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
13 changes: 0 additions & 13 deletions tasks/debian12.yml

This file was deleted.

11 changes: 5 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
- name: Remove externally managed from Debian 12
ansible.builtin.import_tasks: debian12.yml
when:
- ansible_distribution == "Debian"
- ansible_distribution_major_version|int >= 12

- name: Ensure Pip is installed.
package:
name: "{{ pip_package }}"
state: present

- name: Remove EXTERNALLY-MANAGED
ansible.builtin.file:
path: /usr/lib/python3.{{ ansible_python.version.minor }}/EXTERNALLY-MANAGED
state: absent

- name: Ensure pip_install_packages are installed.
pip:
name: "{{ item.name | default(item) }}"
Expand Down

0 comments on commit 5b1f472

Please sign in to comment.