Jessica Wagantall | 564913e | 2018-03-19 13:41:33 -0700 | [diff] [blame] | 1 | --- |
| 2 | - import_playbook: ../common-packer/provision/docker.yaml |
| 3 | |
| 4 | - hosts: all |
| 5 | become_user: root |
| 6 | become_method: sudo |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 7 | 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 Wagantall | 564913e | 2018-03-19 13:41:33 -0700 | [diff] [blame] | 13 | |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 14 | 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 Wagantall | 564913e | 2018-03-19 13:41:33 -0700 | [diff] [blame] | 17 | become: true |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 18 | |
Jessica Wagantall | 5826a6a | 2018-08-11 23:38:07 -0700 | [diff] [blame] | 19 | - file: |
| 20 | path: /usr/local/bin/docker-compose |
| 21 | mode: "+x" |
Jessica Wagantall | dbadc48 | 2018-08-13 14:13:57 -0700 | [diff] [blame^] | 22 | become: true |
Jessica Wagantall | 5826a6a | 2018-08-11 23:38:07 -0700 | [diff] [blame] | 23 | |
Jessica Wagantall | 0cd3700 | 2018-03-27 16:14:46 -0700 | [diff] [blame] | 24 | - 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 Wagantall | 19ce2f5 | 2018-08-08 12:25:08 -0700 | [diff] [blame] | 40 | |
| 41 | - name: Install libxml2-utils |
| 42 | apt: |
| 43 | name: libxml2-utils |
| 44 | state: present |
| 45 | become: true |
Jessica Wagantall | 7f93ce0 | 2018-08-09 19:41:49 -0700 | [diff] [blame] | 46 | |
| 47 | - name: Install python-tox |
| 48 | apt: |
| 49 | name: python-tox |
| 50 | state: present |
| 51 | become: true |
Jessica Wagantall | 42bf827 | 2018-08-09 22:02:42 -0700 | [diff] [blame] | 52 | |
| 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 Wagantall | 3fc37fe | 2018-08-10 00:16:16 -0700 | [diff] [blame] | 73 | |
| 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 |