Merge "Add ensure-python role"
This commit is contained in:
commit
c195d514df
|
@ -1,3 +1,4 @@
|
|||
- hosts: all
|
||||
roles:
|
||||
- ensure-tox
|
||||
- ensure-python
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
Ensure specified python interpreter and development files are installed
|
||||
|
||||
.. note:: This role is only available for Debian based platforms
|
||||
currently.
|
||||
|
||||
**Role Variables**
|
||||
|
||||
.. zuul:rolevar:: python_version
|
||||
|
||||
Optional version of python interpreter to install, such as ``3.7``.
|
|
@ -0,0 +1,6 @@
|
|||
- name: Install specified version of python interpreter and development files
|
||||
when: python_version is defined
|
||||
package:
|
||||
name: python{{ python_version }}-dev
|
||||
state: present
|
||||
become: yes
|
Loading…
Reference in New Issue