diff options
author | Corey Bryant <corey.bryant@canonical.com> | 2018-10-16 08:47:57 -0400 |
---|---|---|
committer | Corey Bryant <corey.bryant@canonical.com> | 2018-10-16 08:53:34 -0400 |
commit | 3d934ebfdaa5f6758198dd6973f34dbf868ab0a8 (patch) | |
tree | 1ba31a4a39daf44d70c4eea436ba9787706ae123 | |
parent | c662ef5bd9af59da1b907cc6d62808d2eb399c93 (diff) |
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
Notes
Notes (review):
Code-Review+2: Monty Taylor <mordred@inaugust.com>
Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de>
Workflow+1: Tobias Henkel <tobias.henkel@bmw.de>
Verified+2: Zuul
Submitted-by: Zuul
Submitted-at: Thu, 18 Oct 2018 06:04:06 +0000
Reviewed-on: https://review.openstack.org/610948
Project: openstack-infra/zuul-jobs
Branch: refs/heads/master
-rw-r--r-- | roles/ensure-python/tasks/main.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/ensure-python/tasks/main.yaml b/roles/ensure-python/tasks/main.yaml index 7b3a594..01a8cc0 100644 --- a/roles/ensure-python/tasks/main.yaml +++ b/roles/ensure-python/tasks/main.yaml | |||
@@ -1,5 +1,7 @@ | |||
1 | - name: Install specified version of python interpreter and development files | 1 | - name: Install specified version of python interpreter and development files |
2 | when: python_version is defined | 2 | when: |
3 | - python_version is defined | ||
4 | - ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' | ||
3 | package: | 5 | package: |
4 | name: python{{ python_version }}-dev | 6 | name: python{{ python_version }}-dev |
5 | state: present | 7 | state: present |