Skip to content

Commit

Permalink
Merge "Chore: Update pyenv python versions to more recent"
Browse files Browse the repository at this point in the history
  • Loading branch information
tykeal authored and Gerrit Code Review committed Oct 4, 2024
2 parents da203c2 + 55ddb30 commit a3d2ec6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
11 changes: 6 additions & 5 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
pyenv_version: v2.3.35
python39_version: 3.9.13
python38_version: 3.8.13
python310_version: 3.10.13
python311_version: 3.11.7
pyenv_version: v2.4.13
python38_version: 3.8.20
python39_version: 3.9.20
python310_version: 3.10.15
python311_version: 3.11.10
python312_version: 3.12.6

python_versions:
- '{{ python39_version }}'
Expand Down
7 changes: 6 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
PYTHON39_VERSION: '{{ python39_version }}'
PYTHON310_VERSION: '{{ python310_version }}'
PYTHON311_VERSION: '{{ python311_version }}'
PYTHON312_VERSION: '{{ python312_version }}'
block:
- name: 'Install pyenv {{ pyenv_version }}'
ansible.builtin.git:
Expand All @@ -81,5 +82,9 @@
when:
- (ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '18.04') or
(ansible_distribution == 'CentOS' and ansible_distribution_major_version >= '8')
- name: 'Set the required python 3.x versions using pyenv' # noqa no-changed-when
- name: 'Set the required python 3.x versions using pyenv on Ubuntu' # noqa no-changed-when
ansible.builtin.command: 'pyenv global system {{ pyenv_cmd }}'
when: ansible_distribution == 'Ubuntu'
- name: 'Set the required python 3.x versions using pyenv on CentOS' # noqa no-changed-when
ansible.builtin.command: 'pyenv global {{ pyenv_cmd }}'
when: ansible_distribution == 'CentOS'

0 comments on commit a3d2ec6

Please sign in to comment.