File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ python_source_version: "2.7.6"
1313python_source_configure_options : " --prefix={{python_prefix_dir}}"
1414
1515get_pip_url : " https://bootstrap.pypa.io/get-pip.py"
16+
17+ python_versions : []
Original file line number Diff line number Diff line change 11---
22- name : " Get the distribution specific variables"
33 include_vars : " {{ansible_distribution|lower}}-{{ansible_distribution_version}}.yml"
4+
45- include_tasks : " package.yml"
6+
57- include_tasks : " pip.yml"
8+
69- include_tasks : " virtualenv.yml"
Original file line number Diff line number Diff line change 11---
2+ - name : " Make sure PPA is enabled"
3+ apt_repository :
4+ repo : " ppa:deadsnakes/ppa"
5+ mode : " 0644"
6+
27- name : " Make sure the packages are installed"
38 apt :
49 pkg : " {{python_packages_add}}"
5- state : " present "
10+ state : " latest "
611 update_cache : true
712 when : python_packages_add|default([])|length > 0
813
1116 pkg : " {{python_packages_remove}}"
1217 state : " absent"
1318 when : python_packages_remove|default([])|length > 0
19+
20+ - name : " install additional python versions, if requested"
21+ apt :
22+ pkg :
23+ - " python{{item}}"
24+ - " python{{item}}-distutils"
25+ - " python{{item}}-dev"
26+ - " python{{item}}-venv"
27+ state : " latest"
28+ with_items : " {{python_versions}}"
You can’t perform that action at this time.
0 commit comments