File tree Expand file tree Collapse file tree 6 files changed +23
-27
lines changed
Expand file tree Collapse file tree 6 files changed +23
-27
lines changed Original file line number Diff line number Diff line change 1- # file: python/defaults/main.yml
1+ ---
22
33python_prefix_dir : " /usr/local"
44python_binary : " {{python_prefix_dir}}/bin/python"
Original file line number Diff line number Diff line change 1- # file: python/meta/main.yml
2-
1+ ---
32galaxy_info :
4- author : pjan vandaele
3+ author : ANXS crew
54 company : ANXS
65 description : " Installs python, pip, setuptools and virtualenv"
7- min_ansible_version : 2.3
6+ min_ansible_version : 2.7
87 license : MIT
98 platforms :
10- - name : Ubuntu
11- versions :
12- - all
9+ - name : Ubuntu
10+ versions :
11+ - all
1312 categories :
14- - system
15- - development
13+ - system
14+ - development
1615
1716dependencies : []
Original file line number Diff line number Diff line change 1- # file: python/tasks/main.yml
2-
3- - include : package.yml
4- - include : pip.yml
5- - include : virtualenv.yml
1+ ---
2+ - include_tasks : " package.yml"
3+ - include_tasks : " pip.yml"
4+ - include_tasks : " virtualenv.yml"
Original file line number Diff line number Diff line change 1- # file: python/tasks/default.yml
2-
3- - name : python | Get the distribution specific variables
1+ ---
2+ - name : " Get the distribution specific variables"
43 include_vars : " {{ansible_os_family}}.yml"
54
6- - name : python | Make sure the packages are installed (Debian)
5+ - name : " Make sure the packages are installed (Debian)"
76 apt :
87 pkg : " {{python_packages}}"
98 state : present
Original file line number Diff line number Diff line change 1- # file: python/tasks/pip.yml
2-
3- - name : python | pip | Fetch the pip install script
1+ ---
2+ - name : " Fetch the pip install script"
43 get_url :
54 dest : " /tmp/get-pip.py"
65 url : " {{get_pip_url}}"
76
8- - name : python | pip | install pip
9- command : python /tmp/get-pip.py creates="{{python_pip_location}}"
7+ - name : " install pip"
8+ command : python /tmp/get-pip.py
9+ creates : " {{python_pip_location}}"
1010
11- - name : python | pip | update setuptools
11+ - name : " update setuptools"
1212 pip :
1313 name : " setuptools{% if python_setuptools_version is defined %}=={{python_setuptools_version}}{% endif %}"
1414 state : present
Original file line number Diff line number Diff line change 1- # file: python/vars/Debian.yml
2-
1+ ---
32python_packages :
43 - python
54 - python-dev
You can’t perform that action at this time.
0 commit comments