Skip to content

Commit a885932

Browse files
committed
actually check for right vars, and add a debian10 variant
1 parent 1f7c410 commit a885932

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

tasks/package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
apt:
44
pkg: "{{python_packages_add}}"
55
state: "present"
6-
when: python_packages|default([])|length > 0
6+
when: python_packages_add|default([])|length > 0
77

88
- name: "Make sure old packages are removed"
99
apt:
1010
pkg: "{{python_packages_remove}}"
1111
state: "absent"
12-
when: python_packages_old|default([])|length > 0
12+
when: python_packages_remove|default([])|length > 0

vars/debian-10.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
python_packages_add:
3+
- "python3"
4+
- "python3-dev"
5+
- "python3-venv"
6+
- "python3-distutils"
7+
8+
python_packages_remove:
9+
- "python2.7"
10+
- "python2.7-dev"

0 commit comments

Comments
 (0)