diff options
Diffstat (limited to 'packer/provision/local-builder.yaml')
-rw-r--r-- | packer/provision/local-builder.yaml | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/packer/provision/local-builder.yaml b/packer/provision/local-builder.yaml index a9280815f..c15615081 100644 --- a/packer/provision/local-builder.yaml +++ b/packer/provision/local-builder.yaml @@ -6,6 +6,12 @@ become_method: sudo tasks: + - apt_repository: + repo: ppa:deadsnakes/ppa + state: present + become: true + when: ansible_distribution == 'Ubuntu' + - name: Update and upgrade apt packages apt: upgrade: yes @@ -19,12 +25,6 @@ state: present become: true - - apt_repository: - repo: ppa:jonathonf/python-3.6 - state: present - become: true - when: ansible_distribution == 'Ubuntu' - - name: Install Python 3.6 and packages apt: name: @@ -37,6 +37,15 @@ become: true when: ansible_distribution == 'Ubuntu' + - name: Install Python 3.7 + apt: + name: + - python3.7 + - python3.7-dev + - python3.7-tk + become: true + when: ansible_distribution == 'Ubuntu' + - name: Install base packages apt: name: |