zuul-jobs/roles/ensure-python/tasks/main.yaml
Corey Bryant 3d934ebfda 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
2018-10-16 08:53:34 -04:00

9 lines
278 B
YAML

- name: Install specified version of python interpreter and development files
when:
- python_version is defined
- ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
package:
name: python{{ python_version }}-dev
state: present
become: yes