|
2 | 2 |
|
3 | 3 | - name: py24 | Check that py24 is still not installed
|
4 | 4 | become: true
|
5 |
| - stat: path="{{ py24_bin }}" |
| 5 | + stat: path="{{ py24.bin }}" |
6 | 6 | register: py24_already_installed
|
7 | 7 | ignore_errors: True
|
8 | 8 |
|
9 | 9 | - name: py24 | Download
|
10 | 10 | get_url:
|
11 |
| - url="{{ py24_url }}" |
12 |
| - dest="{{ py24_tar_file }}" |
13 |
| - checksum="md5:{{ py24_md5 }}" |
| 11 | + url="{{ py24.url }}" |
| 12 | + dest="{{ py24.tar_file }}" |
| 13 | + checksum="md5:{{ py24.md5 }}" |
14 | 14 | when: python_24 and py24_already_installed.stat.exists == false
|
15 | 15 |
|
16 | 16 | - name: py24 | Uncompress
|
17 | 17 | unarchive:
|
18 |
| - src={{ py24_tar_file }} |
| 18 | + src={{ py24.tar_file }} |
19 | 19 | dest=/tmp
|
20 | 20 | copy=no
|
21 |
| - creates="{{ py24_sources }}" |
| 21 | + creates="{{ py24.sources }}" |
22 | 22 | when: python_24 and py24_already_installed.stat.exists == false
|
23 | 23 |
|
24 | 24 | - name: py24 | Configure sources
|
25 | 25 | become: true
|
26 |
| - command: "./configure --prefix {{ py24_install }}" |
| 26 | + command: "./configure --prefix {{ py24.install }}" |
27 | 27 | args:
|
28 |
| - chdir: "{{ py24_sources }}" |
| 28 | + chdir: "{{ py24.sources }}" |
29 | 29 | when: python_24 and py24_already_installed.stat.exists == false
|
30 | 30 |
|
31 | 31 | - name: py24 | Tweak sources
|
32 | 32 | become: true
|
33 | 33 | lineinfile:
|
34 |
| - dest="{{ py24_sources }}/Modules/Setup" |
| 34 | + dest="{{ py24.sources }}/Modules/Setup" |
35 | 35 | regexp=^#zlib(.*)
|
36 | 36 | line=zlib\1
|
37 | 37 | backrefs=yes
|
|
41 | 41 | become: true
|
42 | 42 | command: "{{ item }}"
|
43 | 43 | args:
|
44 |
| - chdir: "{{ py24_sources }}" |
| 44 | + chdir: "{{ py24.sources }}" |
45 | 45 | with_items:
|
46 | 46 | - make
|
47 | 47 | - make install
|
|
50 | 50 | - name: p24 | Create python_major_version symlink
|
51 | 51 | become: true
|
52 | 52 | file:
|
53 |
| - src={{ py24_install }} |
54 |
| - dest='{{ base_install_folder }}/python{{ py24_major_version }}' |
| 53 | + src={{ py24.install }} |
| 54 | + dest='{{ base_install_folder }}/python{{ py24.major_version }}' |
55 | 55 | state=link
|
56 | 56 | when: python_24 and py24_already_installed.stat.exists == false
|
0 commit comments