Add Python 3.7 to CI Nodes 08/98908/2
authorefiacor <fiachra.corcoran@est.tech>
Wed, 27 Nov 2019 20:02:52 +0000 (20:02 +0000)
committerefiacor <fiachra.corcoran@est.tech>
Wed, 27 Nov 2019 21:56:08 +0000 (21:56 +0000)
Change-Id: I0013c6e59c3b02cc9a8c5182ad8c9d7040b69dfa
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Issue-ID: CIMAN-356

packer/provision/local-builder.yaml
packer/provision/local-docker.yaml

index a928081..10c3c40 100644 (file)
@@ -6,6 +6,18 @@
   become_method: sudo
 
   tasks:
+    - apt_repository:
+        repo: ppa:jonathonf/python-3.6
+        state: present
+      become: true
+      when: ansible_distribution == 'Ubuntu'
+
+    - apt_repository:
+        repo: ppa:deadsnakes/ppa
+        state: present
+      become: true
+      when: ansible_distribution == 'Ubuntu'
+
     - name: Update and upgrade apt packages
       apt:
         upgrade: yes
         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:
       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:
index 76e0cbb..c3c9f17 100644 (file)
       become: true
       when: ansible_distribution == 'Ubuntu'
 
+    - apt_repository:
+        repo: ppa:deadsnakes/ppa
+        state: present
+      become: true
+      when: ansible_distribution == 'Ubuntu'
+
     - name: Update and upgrade apt packages
       apt:
         upgrade: yes
       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: