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: |
Bengt Thuree | 4e2a3e8 | 2020-03-26 12:22:18 +1100 | [diff] [blame] | 17 | upgrade: 'yes' |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 18 | update_cache: yes |
| 19 | become: true |
| 20 | when: ansible_distribution == 'Ubuntu' |
| 21 | |
Jessica Wagantall | 0b9a6b2 | 2020-02-24 13:47:24 -0800 | [diff] [blame] | 22 | - name: Install python-tox and deps |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 23 | pip: |
Jessica Wagantall | 0b9a6b2 | 2020-02-24 13:47:24 -0800 | [diff] [blame] | 24 | name: |
| 25 | - tox |
| 26 | - tox-pyenv |
| 27 | - virtualenv |
| 28 | - more-itertools~=5.0.0 |
| 29 | - zipp==1.0.0 |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 30 | state: present |
| 31 | become: true |
| 32 | |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 33 | - 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 Wagantall | 175d5ef | 2020-02-20 10:23:58 -0800 | [diff] [blame] | 42 | - python3-venv |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 43 | become: true |
| 44 | when: ansible_distribution == 'Ubuntu' |
| 45 | |
efiacor | 27f55b7 | 2019-11-27 20:02:52 +0000 | [diff] [blame] | 46 | - 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 | |
vv770d | 4f9ba44 | 2020-07-17 20:46:45 +0000 | [diff] [blame] | 55 | - 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 | |
Michal Jagiello | 9f7857e | 2021-01-22 22:24:57 +0000 | [diff] [blame] | 64 | - name: Install Python 3.9 |
| 65 | apt: |
| 66 | name: |
| 67 | - python3.9 |
| 68 | - python3.9-dev |
| 69 | - python3.9-tk |
Bengt Thuree | 14473ea | 2021-03-16 13:29:06 +1100 | [diff] [blame] | 70 | - python3.9-distutils |
Michal Jagiello | 9f7857e | 2021-01-22 22:24:57 +0000 | [diff] [blame] | 71 | become: true |
| 72 | when: ansible_distribution == 'Ubuntu' |
| 73 | |
Bengt Thuree | 1c1e1fa | 2020-03-04 13:01:27 +1100 | [diff] [blame] | 74 | - name: Install libssl1.0-dev dep |
| 75 | apt: |
| 76 | name: libssl1.0-dev |
| 77 | update_cache: yes |
| 78 | state: fixed |
| 79 | become: true |
| 80 | when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' |
| 81 | |
| 82 | - name: Install nodejs-dev dep for npm |
| 83 | apt: |
| 84 | name: nodejs-dev |
| 85 | update_cache: yes |
| 86 | state: fixed |
| 87 | become: true |
Bengt Thuree | 4844bb9 | 2022-08-30 14:32:23 +1000 | [diff] [blame^] | 88 | when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' |
| 89 | |
| 90 | - name: Install libnode-dev dep for npm |
| 91 | apt: |
| 92 | name: libnode-dev |
| 93 | update_cache: yes |
| 94 | state: fixed |
| 95 | become: true |
| 96 | when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' |
Bengt Thuree | 1c1e1fa | 2020-03-04 13:01:27 +1100 | [diff] [blame] | 97 | |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 98 | - name: Install base packages |
| 99 | apt: |
| 100 | name: |
| 101 | - unzip |
| 102 | - xz-utils |
| 103 | - libxml-xpath-perl |
| 104 | - wget |
| 105 | - make |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 106 | - sshuttle |
| 107 | - netcat |
| 108 | - libssl-dev |
| 109 | - libffi-dev |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 110 | - xmlstarlet |
| 111 | - xvfb |
| 112 | - crudini |
| 113 | - maven |
| 114 | - python-ncclient |
Jessica Wagantall | 2520197 | 2020-02-19 12:00:04 -0800 | [diff] [blame] | 115 | - xmlstarlet |
| 116 | - xvfb |
| 117 | - crudini |
| 118 | - maven |
| 119 | - python-ncclient |
Jessica Wagantall | 2520197 | 2020-02-19 12:00:04 -0800 | [diff] [blame] | 120 | update_cache: yes |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 121 | become: true |
| 122 | when: ansible_distribution == 'Ubuntu' |
Bengt Thuree | 1c1e1fa | 2020-03-04 13:01:27 +1100 | [diff] [blame] | 123 | |
| 124 | - name: Install npm and addon packages |
| 125 | apt: |
| 126 | name: |
| 127 | - nodejs |
| 128 | - npm |
| 129 | - node-gyp |
| 130 | update_cache: yes |
| 131 | state: fixed |
| 132 | become: true |
| 133 | when: ansible_distribution == 'Ubuntu' |
| 134 | |
| 135 | |