Skip to content

Commit

Permalink
Merge pull request #69 from TechDufus/python_handling
Browse files Browse the repository at this point in the history
This fixes python install errors on Ubuntu 20 vs 22 LTS
  • Loading branch information
TechDufus authored Oct 28, 2023
2 parents 05b801a + 643474e commit 57a258d
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 57a258d

Please sign in to comment.