|
1 | 1 | --- |
2 | 2 | # This task configures packaging and installs various system utilities |
3 | 3 |
|
4 | | -- block: |
5 | | - - name: replace pc2.ecs.baylor.edu by packages in apt sources |
| 4 | +- name: World finals fixes for apt sources |
| 5 | + block: |
| 6 | + - name: Replace pc2.ecs.baylor.edu by packages in apt sources |
6 | 7 | replace: |
7 | 8 | dest: "/etc/apt/{{ item }}" |
8 | 9 | regexp: 'pc2\.ecs\.baylor\.edu' |
|
13 | 14 | - sources.list.d/mono.list |
14 | 15 | - sources.list.d/vscode.list |
15 | 16 | - sources.list.d/pypy-ubuntu-ppa-buster.list |
16 | | - notify: run apt update |
| 17 | + notify: Run apt update |
17 | 18 |
|
18 | | - - name: add packages to hosts file |
| 19 | + - name: Add packages to hosts file |
19 | 20 | lineinfile: |
20 | 21 | dest: /etc/hosts |
21 | 22 | regexp: '^10\.3\.3\.209' |
22 | 23 | line: "10.3.3.209 packages" |
23 | | - notify: run apt update |
| 24 | + notify: Run apt update |
24 | 25 |
|
25 | | - - name: remove pycharm repo |
| 26 | + - name: Remove pycharm repo |
26 | 27 | replace: |
27 | 28 | dest: /etc/apt/sources.list |
28 | 29 | regexp: '^([^#].*pycharm.*)$' |
29 | 30 | replace: '# \1' |
30 | | - notify: run apt update |
| 31 | + notify: Run apt update |
31 | 32 | when: ICPC_IMAGE and WF_RESTRICTED_NETWORK |
32 | 33 |
|
33 | | -- name: check for dpkg architecture i386 |
| 34 | +- name: Check for dpkg architecture i386 |
34 | 35 | command: dpkg --print-foreign-architectures |
35 | 36 | register: dpkg_architectures |
36 | 37 | changed_when: false |
37 | 38 |
|
38 | | -- name: remove unused dpkg architecture i386 |
| 39 | +- name: Remove unused dpkg architecture i386 |
39 | 40 | command: dpkg --remove-architecture i386 |
40 | | - notify: run apt update |
| 41 | + notify: Run apt update |
41 | 42 | when: dpkg_architectures.stdout.find('i386') != -1 |
42 | 43 |
|
43 | | -- name: flush handlers |
| 44 | +- name: Flush handlers |
44 | 45 | meta: flush_handlers |
45 | 46 |
|
46 | | -- name: remove some packages |
| 47 | +- name: Remove some packages |
47 | 48 | apt: |
48 | 49 | state: absent |
49 | 50 | pkg: |
50 | 51 | - apport |
51 | 52 | - ntp |
52 | 53 |
|
53 | | -- name: install common required/useful packages |
| 54 | +- name: Install common required/useful packages |
54 | 55 | apt: |
55 | 56 | state: present |
56 | 57 | pkg: |
|
122 | 123 | command: php /root/composer-setup.php --install-dir=/usr/local/bin --filename=composer |
123 | 124 | when: not composer_file.stat.exists |
124 | 125 |
|
125 | | -- name: install local DEB packages |
| 126 | +- name: Install local DEB packages |
126 | 127 | include: install-local-package.yml |
127 | 128 | with_fileglob: |
128 | 129 | - install-{{ host_type }}/*.deb |
0 commit comments