Jessica Wagantall | 564913e | 2018-03-19 13:41:33 -0700 | [diff] [blame] | 1 | --- |
| 2 | - import_playbook: ../common-packer/provision/baseline.yaml |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 3 | |
| 4 | - hosts: all |
| 5 | become_user: root |
| 6 | become_method: sudo |
| 7 | |
Jessica Wagantall | f32a501 | 2019-10-07 12:01:32 -0700 | [diff] [blame] | 8 | tasks: |
efiacor | 27f55b7 | 2019-11-27 20:02:52 +0000 | [diff] [blame] | 9 | - apt_repository: |
efiacor | 27f55b7 | 2019-11-27 20:02:52 +0000 | [diff] [blame] | 10 | repo: ppa:deadsnakes/ppa |
| 11 | state: present |
| 12 | become: true |
| 13 | when: ansible_distribution == 'Ubuntu' |
| 14 | |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 15 | - 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 Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 28 | - 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 | |
efiacor | 27f55b7 | 2019-11-27 20:02:52 +0000 | [diff] [blame] | 40 | - 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 Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 49 | - 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' |