|
2 | 2 |
|
3 | 3 | - name: py26 | Check that py26 is still not installed
|
4 | 4 | become: true
|
5 |
| - stat: path="{{ py26_bin }}" |
| 5 | + stat: path="{{ py26.bin }}" |
6 | 6 | register: py26_already_installed
|
7 | 7 | ignore_errors: True
|
8 | 8 |
|
9 | 9 | - name: py26 | Download
|
10 | 10 | get_url:
|
11 |
| - url="{{ py26_url }}" |
12 |
| - dest="{{ py26_tar_file }}" |
13 |
| - checksum="md5:{{ py26_md5 }}" |
| 11 | + url="{{ py26.url }}" |
| 12 | + dest="{{ py26.tar_file }}" |
| 13 | + checksum="md5:{{ py26.md5 }}" |
14 | 14 | when: python_26 and py26_already_installed.stat.exists == false
|
15 | 15 |
|
16 | 16 | - name: py26 | Uncompress
|
17 | 17 | unarchive:
|
18 |
| - src={{ py26_tar_file }} |
| 18 | + src={{ py26.tar_file }} |
19 | 19 | dest=/tmp
|
20 | 20 | copy=no
|
21 |
| - creates="{{ py26_sources }}" |
| 21 | + creates="{{ py26.sources }}" |
22 | 22 | when: python_26 and py26_already_installed.stat.exists == false
|
23 | 23 |
|
24 | 24 | - name: py26 | Configure sources
|
25 | 25 | become: true
|
26 |
| - command: "./configure --prefix {{ py26_install }}" |
| 26 | + command: "./configure --prefix {{ py26.install }}" |
27 | 27 | args:
|
28 |
| - chdir: "{{ py26_sources }}" |
| 28 | + chdir: "{{ py26.sources }}" |
29 | 29 | when: python_26 and py26_already_installed.stat.exists == false
|
30 | 30 |
|
31 | 31 | - name: py26 | Tweak sources
|
32 | 32 | become: true
|
33 | 33 | lineinfile:
|
34 |
| - dest="{{ py26_sources }}/Modules/Setup" |
| 34 | + dest="{{ py26.sources }}/Modules/Setup" |
35 | 35 | regexp=^#zlib(.*)
|
36 | 36 | line=zlib\1
|
37 | 37 | backrefs=yes
|
|
40 | 40 | - name: py26 | Tweak sources
|
41 | 41 | become: true
|
42 | 42 | lineinfile:
|
43 |
| - dest="{{ py26_sources }}/Modules/Setup" |
| 43 | + dest="{{ py26.sources }}/Modules/Setup" |
44 | 44 | regexp=^#_sha256(.*)
|
45 | 45 | line=_sha256\1
|
46 | 46 | backrefs=yes
|
|
49 | 49 | - name: py26 | Tweak sources
|
50 | 50 | become: true
|
51 | 51 | lineinfile:
|
52 |
| - dest="{{ py26_sources }}/Modules/Setup" |
| 52 | + dest="{{ py26.sources }}/Modules/Setup" |
53 | 53 | regexp=^#_sha512(.*)
|
54 | 54 | line=_sha512\1
|
55 | 55 | backrefs=yes
|
|
59 | 59 | become: true
|
60 | 60 | command: "{{ item }}"
|
61 | 61 | args:
|
62 |
| - chdir: "{{ py26_sources }}" |
| 62 | + chdir: "{{ py26.sources }}" |
63 | 63 | with_items:
|
64 | 64 | - make
|
65 | 65 | - make install
|
|
68 | 68 | - name: py26 | Create python_major_version symlink
|
69 | 69 | become: true
|
70 | 70 | file:
|
71 |
| - src={{ py26_install }} |
72 |
| - dest='{{ base_install_folder }}/python{{ py26_major_version }}' |
| 71 | + src={{ py26.install }} |
| 72 | + dest='{{ base_install_folder }}/python{{ py26.major_version }}' |
73 | 73 | state=link
|
74 | 74 | when: python_26 and py26_already_installed.stat.exists == false
|
0 commit comments