Skip to content

Commit

Permalink
This fixes python install errors on Ubuntu 20 vs 22 LTS
Browse files Browse the repository at this point in the history
Closes #62
  • Loading branch information
TechDufus committed Oct 27, 2023
1 parent 05b801a commit 643474e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions roles/common/tasks/common-installPackages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,21 @@
state: present
failed_when: false
loop: "{{ apt.packages.yolo }}"

- name: Install Python
ansible.builtin.apt:
name: python
state: present
update_cache: true
register: python_install
ignore_errors: true

- name: Python Failed, Installing Python3
ansible.builtin.apt:
name: "{{ item }}"
state: present
update_cache: true
loop:
- python3
- python-is-python3
when: python_install is failed
1 change: 0 additions & 1 deletion vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ apt:
- g++-multilib
- autoconf
- ncurses-dev
- python
- wget
- curl
- bc
Expand Down

0 comments on commit 643474e

Please sign in to comment.