blob: fa969d51f8fcfc6b340de1f17dabfc05eae26eee [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 Wagantallc9469342019-10-07 11:35:53 -070022 - name: Install Python 3.6 and packages
23 apt:
24 name:
25 - python3.6
26 - python3.6-dev
27 - python3.6-tk
28 - libssl-dev
29 - libmysqlclient-dev
30 - gcc
Jessica Wagantall175d5ef2020-02-20 10:23:58 -080031 - python3-venv
Jessica Wagantallc9469342019-10-07 11:35:53 -070032 become: true
33 when: ansible_distribution == 'Ubuntu'
34
efiacor27f55b72019-11-27 20:02:52 +000035 - name: Install Python 3.7
36 apt:
37 name:
38 - python3.7
39 - python3.7-dev
40 - python3.7-tk
41 become: true
42 when: ansible_distribution == 'Ubuntu'
43
vv770d4f9ba442020-07-17 20:46:45 +000044 - name: Install Python 3.8
45 apt:
46 name:
47 - python3.8
48 - python3.8-dev
49 - python3.8-tk
50 become: true
51 when: ansible_distribution == 'Ubuntu'
52
Michal Jagiello9f7857e2021-01-22 22:24:57 +000053 - name: Install Python 3.9
54 apt:
55 name:
56 - python3.9
57 - python3.9-dev
58 - python3.9-tk
Bengt Thuree14473ea2021-03-16 13:29:06 +110059 - python3.9-distutils
Michal Jagiello9f7857e2021-01-22 22:24:57 +000060 become: true
61 when: ansible_distribution == 'Ubuntu'
62
Bengt Thuree1c1e1fa2020-03-04 13:01:27 +110063 - name: Install libssl1.0-dev dep
64 apt:
65 name: libssl1.0-dev
66 update_cache: yes
67 state: fixed
68 become: true
69 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
70
71 - name: Install nodejs-dev dep for npm
72 apt:
73 name: nodejs-dev
74 update_cache: yes
75 state: fixed
76 become: true
Bengt Thuree4844bb92022-08-30 14:32:23 +100077 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
78
79 - name: Install libnode-dev dep for npm
80 apt:
81 name: libnode-dev
82 update_cache: yes
83 state: fixed
84 become: true
85 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
Bengt Thuree1c1e1fa2020-03-04 13:01:27 +110086
Jessica Wagantalla6a20d72022-09-07 12:00:18 -070087 - name: Install supporting packages (Ubuntu 18.04)
Jessica Wagantallc9469342019-10-07 11:35:53 -070088 apt:
89 name:
90 - unzip
91 - xz-utils
92 - libxml-xpath-perl
93 - wget
94 - make
Jessica Wagantallc9469342019-10-07 11:35:53 -070095 - sshuttle
96 - netcat
97 - libssl-dev
98 - libffi-dev
Jessica Wagantallc9469342019-10-07 11:35:53 -070099 - xmlstarlet
100 - xvfb
101 - crudini
102 - maven
103 - python-ncclient
Jessica Wagantalla6a20d72022-09-07 12:00:18 -0700104 update_cache: yes
105 state: fixed
106 become: true
107 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
108
109 - name: Install supporting packages (Ubuntu 20.04)
110 apt:
111 name:
112 - unzip
113 - xz-utils
114 - libxml-xpath-perl
115 - wget
116 - make
117 - sshuttle
118 - netcat
119 - libssl-dev
120 - libffi-dev
Jessica Wagantall25201972020-02-19 12:00:04 -0800121 - xmlstarlet
122 - xvfb
123 - crudini
124 - maven
Bengt Thuree1610dcb2022-09-08 19:26:17 +1000125 - python3-ncclient
Jessica Wagantall25201972020-02-19 12:00:04 -0800126 update_cache: yes
Jessica Wagantalla6a20d72022-09-07 12:00:18 -0700127 state: fixed
Jessica Wagantallc9469342019-10-07 11:35:53 -0700128 become: true
Jessica Wagantalla6a20d72022-09-07 12:00:18 -0700129 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
Bengt Thuree1c1e1fa2020-03-04 13:01:27 +1100130
131 - name: Install npm and addon packages
132 apt:
133 name:
134 - nodejs
135 - npm
136 - node-gyp
137 update_cache: yes
138 state: fixed
139 become: true
140 when: ansible_distribution == 'Ubuntu'
141
Bengt Thuree737eca22022-10-13 12:50:30 +1100142 - name: Install enchant2 package for Ubuntu 20.04
Bengt Thureefb285eb2022-10-07 11:17:11 +1100143 apt:
144 name:
145 - enchant-2
146 update_cache: yes
147 state: present
148 become: true
Bengt Thuree737eca22022-10-13 12:50:30 +1100149 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
150
151 - name: Install enchant package for Ubuntu 18.04
152 apt:
153 name:
154 - enchant
155 update_cache: yes
156 state: present
157 become: true
158 when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
Bengt Thuree1c1e1fa2020-03-04 13:01:27 +1100159
Bengt Thureefb285eb2022-10-07 11:17:11 +1100160 - name: Install enchant2 package for CentOS
161 dnf:
162 name:
163 - enchant2
164 update_cache: yes
165 state: present
166 become: true
167 when: ansible_distribution == 'CentOS'