|
26 | 26 | - "python{{ item.version }}-dev" |
27 | 27 | - "python{{ item.version }}-venv" |
28 | 28 | state: latest |
29 | | - with_items: '{{python_dev_versions}}' |
| 29 | + with_items: "{{ python_dev_versions }}" |
30 | 30 | - name: Install extra python support libs |
31 | 31 | become: true |
32 | 32 | apt: |
|
45 | 45 | mode: 0755 |
46 | 46 | - name: Install pip from source |
47 | 47 | become: true |
48 | | - command: "python'{{item.version}}' /tmp/get-pip.py" |
| 48 | + command: "python{{ item.version }} /tmp/get-pip.py" |
49 | 49 | args: |
50 | | - creates: "/usr/local/bin/pip{{item.version}}" |
51 | | - with_items: '{{python_dev_versions}}' |
| 50 | + creates: "/usr/local/bin/pip{{ item.version }}" |
| 51 | + with_items: "{{ python_dev_versions }}" |
52 | 52 |
|
53 | 53 | - name: Create ~/.pip |
54 | 54 | file: |
55 | | - path: "{{ansible_env.HOME}}/.pip" |
| 55 | + path: "{{ ansible_env.HOME }}/.pip" |
56 | 56 | state: directory |
57 | 57 | - name: Create pip wheelhouse |
58 | 58 | file: |
59 | | - path: "{{python_dev_wheelhouse}}" |
| 59 | + path: "{{ python_dev_wheelhouse }}" |
60 | 60 | state: directory |
61 | 61 | - name: ~/.pip.conf |
62 | 62 | template: |
63 | 63 | src: pip.conf |
64 | | - dest: "{{ansible_env.HOME}}/.pip/pip.conf" |
| 64 | + dest: "{{ ansible_env.HOME }}/.pip/pip.conf" |
65 | 65 |
|
66 | 66 | - name: Install pip tools |
67 | 67 | pip: |
68 | 68 | name: "{{ item[1] }}" |
69 | | - executable: pip{{item[0].version}} |
| 69 | + executable: "pip{{ item[0].version }}" |
70 | 70 | become: true |
71 | 71 | with_nested: |
72 | | - - '{{python_dev_versions}}' |
| 72 | + - "{{ python_dev_versions }}" |
73 | 73 | - [ 'wheel', 'certifi', 'pyopenssl', 'pyasn1', 'ndg-httpsclient' ] |
74 | 74 |
|
75 | 75 | - name: Remove system package for virtualenv |
|
80 | 80 |
|
81 | 81 | - name: Install Python tools |
82 | 82 | become: true |
83 | | - command: "python3 -m pip install -U {{item}}" |
| 83 | + pip: |
| 84 | + name: "{{ item }}" |
84 | 85 | with_items: |
85 | 86 | - pbr |
86 | 87 | - tox |
|
0 commit comments