blob: 077c52f655f399546ff7bef1e8923597ab2cf8d8 [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:
Bengt Thuree4e2a3e82020-03-26 12:22:18 +110017 upgrade: 'yes'
Jessica Wagantallc9469342019-10-07 11:35:53 -070018 update_cache: yes
19 become: true
20 when: ansible_distribution == 'Ubuntu'
21
Jessica Wagantall0b9a6b22020-02-24 13:47:24 -080022 - name: Install python-tox and deps
Jessica Wagantallc9469342019-10-07 11:35:53 -070023 pip:
Jessica Wagantall0b9a6b22020-02-24 13:47:24 -080024 name:
25 - tox
26 - tox-pyenv
27 - virtualenv
28 - more-itertools~=5.0.0
29 - zipp==1.0.0
Jessica Wagantallc9469342019-10-07 11:35:53 -070030 state: present
31 become: true
32
Jessica Wagantallc9469342019-10-07 11:35:53 -070033 - name: Install Python 3.6 and packages
34 apt:
35 name:
36 - python3.6
37 - python3.6-dev
38 - python3.6-tk
39 - libssl-dev
40 - libmysqlclient-dev
41 - gcc
Jessica Wagantall175d5ef2020-02-20 10:23:58 -080042 - python3-venv
Jessica Wagantallc9469342019-10-07 11:35:53 -070043 become: true
44 when: ansible_distribution == 'Ubuntu'
45
efiacor27f55b72019-11-27 20:02:52 +000046 - name: Install Python 3.7
47 apt:
48 name:
49 - python3.7
50 - python3.7-dev
51 - python3.7-tk
52 become: true
53 when: ansible_distribution == 'Ubuntu'
54
vv770d4f9ba442020-07-17 20:46:45 +000055 - name: Install Python 3.8
56 apt:
57 name:
58 - python3.8
59 - python3.8-dev
60 - python3.8-tk
61 become: true
62 when: ansible_distribution == 'Ubuntu'
63
Bengt Thuree1c1e1fa2020-03-04 13:01:27 +110064 - name: Install libssl1.0-dev dep
65 apt:
66 name: libssl1.0-dev
67 update_cache: yes
68 state: fixed
69 become: true
70 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
71
72 - name: Install nodejs-dev dep for npm
73 apt:
74 name: nodejs-dev
75 update_cache: yes
76 state: fixed
77 become: true
78 when: ansible_distribution == 'Ubuntu'
79
Jessica Wagantallc9469342019-10-07 11:35:53 -070080 - name: Install base packages
81 apt:
82 name:
83 - unzip
84 - xz-utils
85 - libxml-xpath-perl
86 - wget
87 - make
Jessica Wagantallc9469342019-10-07 11:35:53 -070088 - sshuttle
89 - netcat
90 - libssl-dev
91 - libffi-dev
Jessica Wagantallc9469342019-10-07 11:35:53 -070092 - xmlstarlet
93 - xvfb
94 - crudini
95 - maven
96 - python-ncclient
Jessica Wagantall25201972020-02-19 12:00:04 -080097 - xmlstarlet
98 - xvfb
99 - crudini
100 - maven
101 - python-ncclient
Jessica Wagantall25201972020-02-19 12:00:04 -0800102 update_cache: yes
Jessica Wagantallc9469342019-10-07 11:35:53 -0700103 become: true
104 when: ansible_distribution == 'Ubuntu'
Bengt Thuree1c1e1fa2020-03-04 13:01:27 +1100105
106 - name: Install npm and addon packages
107 apt:
108 name:
109 - nodejs
110 - npm
111 - node-gyp
112 update_cache: yes
113 state: fixed
114 become: true
115 when: ansible_distribution == 'Ubuntu'
116
117