Skip to content
This repository was archived by the owner on Jan 5, 2020. It is now read-only.

Commit a6b58d8

Browse files
committed
Remove default_* in python role
1 parent 8b57283 commit a6b58d8

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

roles/python/tasks/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
pip:
1010
name: "{{ item.name | default(item) }}"
1111
state: "{{ item.state | default('latest') }}"
12-
with_items: "{{ default_python2_packages + python2_packages }}"
12+
with_items: "{{ python2_packages }}"
1313

1414
- name: Install Python3 package
1515
pip:
1616
name: "{{ item.name | default(item) }}"
1717
state: "{{ item.state | default('latest') }}"
1818
executable: pip3
19-
with_items: "{{ default_python3_packages + python3_packages }}"
19+
with_items: "{{ python3_packages }}"

roles/python/vars/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
default_python2_packages:
2+
python2_packages:
33
- neovim
44

5-
default_python3_packages:
5+
python3_packages:
66
- jupyterlab
77
- widgetsnbextension
88
- neovim

vars/main.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
---
22
xdg_data_home: "{{ ansible_user_dir }}/.local/share"
3-
4-
python2_packages: []
5-
python3_packages: []

0 commit comments

Comments
 (0)