blob: c15615081ac4691bf438109314a90cfa37bed928 [file] [log] [blame]
Jessica Wagantall564913e2018-03-19 13:41:33 -07001---
2- import_playbook: ../common-packer/provision/baseline.yaml
Jessica Wagantallc9469342019-10-07 11:35:53 -07003
4- hosts: all
5 become_user: root
6 become_method: sudo
7
Jessica Wagantallf32a5012019-10-07 12:01:32 -07008 tasks:
efiacor27f55b72019-11-27 20:02:52 +00009 - apt_repository:
efiacor27f55b72019-11-27 20:02:52 +000010 repo: ppa:deadsnakes/ppa
11 state: present
12 become: true
13 when: ansible_distribution == 'Ubuntu'
14
Jessica Wagantallc9469342019-10-07 11:35:53 -070015 - name: Update and upgrade apt packages
16 apt:
17 upgrade: yes
18 update_cache: yes
19 become: true
20 when: ansible_distribution == 'Ubuntu'
21
22 - name: Install python-tox
23 pip:
24 name: tox
25 state: present
26 become: true
27
Jessica Wagantallc9469342019-10-07 11:35:53 -070028 - name: Install Python 3.6 and packages
29 apt:
30 name:
31 - python3.6
32 - python3.6-dev
33 - python3.6-tk
34 - libssl-dev
35 - libmysqlclient-dev
36 - gcc
37 become: true
38 when: ansible_distribution == 'Ubuntu'
39
efiacor27f55b72019-11-27 20:02:52 +000040 - name: Install Python 3.7
41 apt:
42 name:
43 - python3.7
44 - python3.7-dev
45 - python3.7-tk
46 become: true
47 when: ansible_distribution == 'Ubuntu'
48
Jessica Wagantallc9469342019-10-07 11:35:53 -070049 - name: Install base packages
50 apt:
51 name:
52 - unzip
53 - xz-utils
54 - libxml-xpath-perl
55 - wget
56 - make
57 - npm
58 - sshuttle
59 - netcat
60 - libssl-dev
61 - libffi-dev
62 become: true
63 when: ansible_distribution == 'Ubuntu'
64
65 - name: Install autorelease support packages
66 apt:
67 name:
68 - xmlstarlet
69 - xvfb
70 - crudini
71 - maven
72 - python-ncclient
73 become: true
74 when: ansible_distribution == 'Ubuntu'