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 | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 22 | - 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 Wagantall | 175d5ef | 2020-02-20 10:23:58 -0800 | [diff] [blame] | 31 | - python3-venv |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 32 | become: true |
| 33 | when: ansible_distribution == 'Ubuntu' |
| 34 | |
efiacor | 27f55b7 | 2019-11-27 20:02:52 +0000 | [diff] [blame] | 35 | - 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 | |
vv770d | 4f9ba44 | 2020-07-17 20:46:45 +0000 | [diff] [blame] | 44 | - 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 Jagiello | 9f7857e | 2021-01-22 22:24:57 +0000 | [diff] [blame] | 53 | - name: Install Python 3.9 |
| 54 | apt: |
| 55 | name: |
| 56 | - python3.9 |
| 57 | - python3.9-dev |
| 58 | - python3.9-tk |
Bengt Thuree | 14473ea | 2021-03-16 13:29:06 +1100 | [diff] [blame] | 59 | - python3.9-distutils |
Michal Jagiello | 9f7857e | 2021-01-22 22:24:57 +0000 | [diff] [blame] | 60 | become: true |
| 61 | when: ansible_distribution == 'Ubuntu' |
| 62 | |
Bengt Thuree | 1c1e1fa | 2020-03-04 13:01:27 +1100 | [diff] [blame] | 63 | - 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 Thuree | 4844bb9 | 2022-08-30 14:32:23 +1000 | [diff] [blame] | 77 | 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 Thuree | 1c1e1fa | 2020-03-04 13:01:27 +1100 | [diff] [blame] | 86 | |
Jessica Wagantall | a6a20d7 | 2022-09-07 12:00:18 -0700 | [diff] [blame] | 87 | - name: Install supporting packages (Ubuntu 18.04) |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 88 | apt: |
| 89 | name: |
| 90 | - unzip |
| 91 | - xz-utils |
| 92 | - libxml-xpath-perl |
| 93 | - wget |
| 94 | - make |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 95 | - sshuttle |
| 96 | - netcat |
| 97 | - libssl-dev |
| 98 | - libffi-dev |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 99 | - xmlstarlet |
| 100 | - xvfb |
| 101 | - crudini |
| 102 | - maven |
| 103 | - python-ncclient |
Jessica Wagantall | a6a20d7 | 2022-09-07 12:00:18 -0700 | [diff] [blame] | 104 | 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 Wagantall | 2520197 | 2020-02-19 12:00:04 -0800 | [diff] [blame] | 121 | - xmlstarlet |
| 122 | - xvfb |
| 123 | - crudini |
| 124 | - maven |
Bengt Thuree | 1610dcb | 2022-09-08 19:26:17 +1000 | [diff] [blame] | 125 | - python3-ncclient |
Jessica Wagantall | 2520197 | 2020-02-19 12:00:04 -0800 | [diff] [blame] | 126 | update_cache: yes |
Jessica Wagantall | a6a20d7 | 2022-09-07 12:00:18 -0700 | [diff] [blame] | 127 | state: fixed |
Jessica Wagantall | c946934 | 2019-10-07 11:35:53 -0700 | [diff] [blame] | 128 | become: true |
Jessica Wagantall | a6a20d7 | 2022-09-07 12:00:18 -0700 | [diff] [blame] | 129 | when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04' |
Bengt Thuree | 1c1e1fa | 2020-03-04 13:01:27 +1100 | [diff] [blame] | 130 | |
| 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 Thuree | 737eca2 | 2022-10-13 12:50:30 +1100 | [diff] [blame] | 142 | - name: Install enchant2 package for Ubuntu 20.04 |
Bengt Thuree | fb285eb | 2022-10-07 11:17:11 +1100 | [diff] [blame] | 143 | apt: |
| 144 | name: |
| 145 | - enchant-2 |
| 146 | update_cache: yes |
| 147 | state: present |
| 148 | become: true |
Bengt Thuree | 737eca2 | 2022-10-13 12:50:30 +1100 | [diff] [blame] | 149 | 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 Thuree | 1c1e1fa | 2020-03-04 13:01:27 +1100 | [diff] [blame] | 159 | |
Bengt Thuree | fb285eb | 2022-10-07 11:17:11 +1100 | [diff] [blame] | 160 | - 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' |