Skip to content

Commit

Permalink
fix(Python): Corrected python setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k authored Nov 9, 2022
1 parent cc07f14 commit b820de2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker/_base/ansible/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
pip_install_packages:
- name: docker
- name: mssql-cli
pip_executable: /usr/bin/pip3
1 change: 1 addition & 0 deletions docker/ansible/ansible/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pip_install_packages:
- name: molecule
- name: pyyaml
- name: yamllint
pip_executable: /usr/bin/pip3
2 changes: 1 addition & 1 deletion docker/ansible/roles/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
- src: geerlingguy.pip
version: "2.0.0"
version: "2.2.0"
4 changes: 2 additions & 2 deletions roles/prepare/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
- name: Install git secret
raw: git clone https://github.com/sobolevn/git-secret.git git-secret && cd git-secret && make build && PREFIX="/usr/local" make install

- name: Bootstrap python
raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python3 && update-alternatives --install /usr/bin/python python /usr/bin/python3 1)
- name: Defaulting to python 3
raw: update-alternatives --install /usr/bin/python python /usr/bin/python3 1

- name: Install NodeJS LTS
raw: curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && apt-get install -y nodejs
Expand Down
1 change: 1 addition & 0 deletions roles/prepare/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ common_packages:
- "google-cloud-sdk"
- "htop"
- "libxss1"
- "python3"
- "python3-pip"
- "python3-pkg-resources"
- "python3-setuptools"
Expand Down

0 comments on commit b820de2

Please sign in to comment.