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
This commit is contained in:
parent
c662ef5bd9
commit
3d934ebfda
@ -1,5 +1,7 @@
|
|||||||
- name: Install specified version of python interpreter and development files
|
- 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:
|
package:
|
||||||
name: python{{ python_version }}-dev
|
name: python{{ python_version }}-dev
|
||||||
state: present
|
state: present
|
||||||
|
Loading…
Reference in New Issue
Block a user