From 3d934ebfdaa5f6758198dd6973f34dbf868ab0a8 Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Tue, 16 Oct 2018 08:47:57 -0400 Subject: [PATCH] Limit ensure-python to Debian/Ubuntu use While ensure-python has the potential to support more distros, it currently is limited to Debian based installs. This patch ensures that, for now, it can only be used for Debian or Ubuntu. Change-Id: Id02251f211d700d1fdd1fe43d7310b5779c1662d --- roles/ensure-python/tasks/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/ensure-python/tasks/main.yaml b/roles/ensure-python/tasks/main.yaml index 7b3a59487..01a8cc0a1 100644 --- a/roles/ensure-python/tasks/main.yaml +++ b/roles/ensure-python/tasks/main.yaml @@ -1,5 +1,7 @@ - name: Install specified version of python interpreter and development files - when: python_version is defined + when: + - python_version is defined + - ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' package: name: python{{ python_version }}-dev state: present