Skip to content

Commit 72c7fc9

Browse files
committed
updates for ansible-lint
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
1 parent d7b0f18 commit 72c7fc9

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎meta/main.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ dependencies: []
1717
# dependencies available via galaxy should be listed here.
1818
# Be sure to remove the '[]' above if you add dependencies
1919
# to this list.
20-

‎tasks/main.yml‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- "python{{ item.version }}-dev"
2727
- "python{{ item.version }}-venv"
2828
state: latest
29-
with_items: '{{python_dev_versions}}'
29+
with_items: "{{ python_dev_versions }}"
3030
- name: Install extra python support libs
3131
become: true
3232
apt:
@@ -45,31 +45,31 @@
4545
mode: 0755
4646
- name: Install pip from source
4747
become: true
48-
command: "python'{{item.version}}' /tmp/get-pip.py"
48+
command: "python{{ item.version }} /tmp/get-pip.py"
4949
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 }}"
5252

5353
- name: Create ~/.pip
5454
file:
55-
path: "{{ansible_env.HOME}}/.pip"
55+
path: "{{ ansible_env.HOME }}/.pip"
5656
state: directory
5757
- name: Create pip wheelhouse
5858
file:
59-
path: "{{python_dev_wheelhouse}}"
59+
path: "{{ python_dev_wheelhouse }}"
6060
state: directory
6161
- name: ~/.pip.conf
6262
template:
6363
src: pip.conf
64-
dest: "{{ansible_env.HOME}}/.pip/pip.conf"
64+
dest: "{{ ansible_env.HOME }}/.pip/pip.conf"
6565

6666
- name: Install pip tools
6767
pip:
6868
name: "{{ item[1] }}"
69-
executable: pip{{item[0].version}}
69+
executable: "pip{{ item[0].version }}"
7070
become: true
7171
with_nested:
72-
- '{{python_dev_versions}}'
72+
- "{{ python_dev_versions }}"
7373
- [ 'wheel', 'certifi', 'pyopenssl', 'pyasn1', 'ndg-httpsclient' ]
7474

7575
- name: Remove system package for virtualenv
@@ -80,7 +80,8 @@
8080

8181
- name: Install Python tools
8282
become: true
83-
command: "python3 -m pip install -U {{item}}"
83+
pip:
84+
name: "{{ item }}"
8485
with_items:
8586
- pbr
8687
- tox

0 commit comments

Comments
 (0)