blob: f9cfdf6405ff3d3b50c1b6aabccdb079f6200daa [file] [log] [blame]
Jessica Wagantall564913e2018-03-19 13:41:33 -07001---
2- import_playbook: ../common-packer/provision/docker.yaml
3
4- hosts: all
5 become_user: root
6 become_method: sudo
Jessica Wagantall0cd37002018-03-27 16:14:46 -07007 vars:
8 docker_compose_version: 1.17.1
9 glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c
10 glide_version: v0.13.1
11 golang_checksum: sha256:07d81c6b6b4c2dcf1b5ef7c27aaebd3691cdb40548500941f92b221147c5d9c7
12 golang_version: 1.9.1
Jessica Wagantall564913e2018-03-19 13:41:33 -070013
Jessica Wagantall0cd37002018-03-27 16:14:46 -070014 tasks:
15 - name: 'Install Docker Compose {{docker_compose_version}}'
16 command: curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/{{docker_compose_version}}/docker-compose-$(uname -s)-$(uname -m)"
Jessica Wagantall564913e2018-03-19 13:41:33 -070017 become: true
Jessica Wagantall0cd37002018-03-27 16:14:46 -070018
Jessica Wagantall5826a6a2018-08-11 23:38:07 -070019 - file:
20 path: /usr/local/bin/docker-compose
21 mode: "+x"
Jessica Wagantalldbadc482018-08-13 14:13:57 -070022 become: true
Jessica Wagantall5826a6a2018-08-11 23:38:07 -070023
Jessica Wagantall0cd37002018-03-27 16:14:46 -070024 - name: 'Install GoLang {{golang_version}}'
25 block:
26 - name: 'Fetch golang {{golang_version}} to /tmp/go{{golang_version}}.linux-amd64.tar.gz'
27 get_url:
28 url: 'https://storage.googleapis.com/golang/go{{golang_version}}.linux-amd64.tar.gz'
29 dest: '/tmp/go{{golang_version}}.linux-amd64.tar.gz'
30 checksum: '{{golang_checksum}}'
31 - name: 'Install golang {{golang_version}} to /usr/local'
32 unarchive:
33 src: '/tmp/go{{golang_version}}.linux-amd64.tar.gz'
34 dest: /usr/local
35 remote_src: true
36 become: true
37 - name: 'Add golang to PATH'
38 command: 'echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile'
39 become: true
Jessica Wagantall19ce2f52018-08-08 12:25:08 -070040
41 - name: Install libxml2-utils
42 apt:
43 name: libxml2-utils
44 state: present
45 become: true
Jessica Wagantall7f93ce02018-08-09 19:41:49 -070046
47 - name: Install python-tox
48 apt:
49 name: python-tox
50 state: present
51 become: true
Jessica Wagantall42bf8272018-08-09 22:02:42 -070052
53 - apt_repository:
54 repo: ppa:jonathonf/python-3.6
55 state: present
56 become: true
57
58 - name: Update and upgrade apt packages
59 apt:
60 upgrade: yes
61 update_cache: yes
62 become: true
63
64 - name: Install Python 3.6 and packages
65 apt:
66 name:
67 - python3.6
68 - python3.6-dev
69 - libssl-dev
70 - libmysqlclient-dev
71 - gcc
72 become: true
Jessica Wagantall3fc37fe2018-08-10 00:16:16 -070073
74 - name: Install base packages
75 apt:
76 name:
77 - unzip
78 - xz-utils
79 - libxml-xpath-perl
80 - wget
81 - make
82 - npm
83 - sshuttle
84 - netcat
85 - libssl-dev
86 - libffi-dev
87 become: true
88
89 - name: Install autorelease support packages
90 apt:
91 name:
92 - firefox
93 - xmlstarlet
94 - xvfb
95 - crudini
96 - maven
97 - python-ncclient
98 become: true