Merge "Limit ensure-python to Debian/Ubuntu use"

This commit is contained in:
Zuul 2018-10-18 06:04:06 +00:00 committed by Gerrit Code Review
commit 7bf2ddec83
1 changed files with 3 additions and 1 deletions

View File

@ -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