|
1 | 1 | ---
|
2 | 2 | # This task configures packaging and installs various system utilities
|
3 | 3 |
|
4 |
| -- name: replace pc2.ecs.baylor.edu by packages in apt sources |
5 |
| - replace: |
6 |
| - dest: "/etc/apt/{{ item }}" |
7 |
| - regexp: 'pc2\.ecs\.baylor\.edu' |
8 |
| - replace: 'packages' |
9 |
| - loop: |
10 |
| - - sources.list |
11 |
| - - sources.list.d/microsoft.list |
12 |
| - - sources.list.d/mono.list |
13 |
| - - sources.list.d/vscode.list |
14 |
| - - sources.list.d/pypy-ubuntu-ppa-buster.list |
15 |
| - notify: run apt update |
16 |
| - when: WF_RESTRICTED_NETWORK |
| 4 | +- block: |
| 5 | + - name: replace pc2.ecs.baylor.edu by packages in apt sources |
| 6 | + replace: |
| 7 | + dest: "/etc/apt/{{ item }}" |
| 8 | + regexp: 'pc2\.ecs\.baylor\.edu' |
| 9 | + replace: 'packages' |
| 10 | + loop: |
| 11 | + - sources.list |
| 12 | + - sources.list.d/microsoft.list |
| 13 | + - sources.list.d/mono.list |
| 14 | + - sources.list.d/vscode.list |
| 15 | + - sources.list.d/pypy-ubuntu-ppa-buster.list |
| 16 | + notify: run apt update |
17 | 17 |
|
18 |
| -- name: add packages to hosts file |
19 |
| - lineinfile: |
20 |
| - dest: /etc/hosts |
21 |
| - regexp: '^10\.3\.3\.209' |
22 |
| - line: "10.3.3.209 packages" |
23 |
| - notify: run apt update |
24 |
| - when: WF_RESTRICTED_NETWORK |
| 18 | + - name: add packages to hosts file |
| 19 | + lineinfile: |
| 20 | + dest: /etc/hosts |
| 21 | + regexp: '^10\.3\.3\.209' |
| 22 | + line: "10.3.3.209 packages" |
| 23 | + notify: run apt update |
| 24 | + |
| 25 | + - name: remove pycharm repo |
| 26 | + replace: |
| 27 | + dest: /etc/apt/sources.list |
| 28 | + regexp: '^([^#].*pycharm.*)$' |
| 29 | + replace: '# \1' |
| 30 | + notify: run apt update |
| 31 | + when: ICPC_IMAGE and WF_RESTRICTED_NETWORK |
25 | 32 |
|
26 | 33 | - name: check for dpkg architecture i386
|
27 | 34 | command: dpkg --print-foreign-architectures
|
|
33 | 40 | notify: run apt update
|
34 | 41 | when: dpkg_architectures.stdout.find('i386') != -1
|
35 | 42 |
|
36 |
| -- name: remove pycharm repo |
37 |
| - replace: |
38 |
| - dest: /etc/apt/sources.list |
39 |
| - regexp: '^([^#].*pycharm.*)$' |
40 |
| - replace: '# \1' |
41 |
| - notify: run apt update |
42 |
| - |
43 | 43 | - name: flush handlers
|
44 | 44 | meta: flush_handlers
|
45 | 45 |
|
|
0 commit comments