Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 9495357

Browse files
committed
Add pythonz_repo and pythonz_version variables
1 parent f4c7bc3 commit 9495357

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Role Variables
1414
--------------
1515

1616
* `python_versions`: List of valid python 3 versions to install.
17+
* `pythonz_repo`: Git url to the pythonz repository (default to: https://github.com/saghul/pythonz.git)
18+
* `pythonz_version`: Version of pythonz to download (default to: master)
19+
1720

1821
Dependencies
1922
------------

defaults/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
2+
pythonz_version: master
3+
pythonz_repo: https://github.com/saghul/pythonz.git
24
python_versions:
35
- "3.6.3"

tasks/pythonz.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
- name: Download Pythonz
2323
git:
2424
force: no
25-
repo: https://github.com/saghul/pythonz.git
25+
repo: "{{ pythonz_repo }}"
2626
dest: /usr/src/pythonz
27-
version: master
27+
version: "{{ pythonz_version }}"
2828
register: new_pythonz_release
2929

3030
- name: Install pythonz

0 commit comments

Comments
 (0)