File tree Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ galaxy_info:
4
4
company : SinglePlatform (http://www.singleplatform.com/)
5
5
license : BSD 3-Clause
6
6
7
- min_ansible_version : 2.1
7
+ min_ansible_version : 2.2
8
8
platforms :
9
9
- name : Ubuntu
10
10
versions :
@@ -14,6 +14,4 @@ galaxy_info:
14
14
- all
15
15
16
16
galaxy_tags :
17
- - security
18
- - logrhythm
19
- - logging
17
+ - python
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Install dependencies
4
- apt : name="{{item}}" state=latest update_cache=yes cache_valid_time=86400
4
+ apt : name="{{item}}" update_cache=yes cache_valid_time=86400
5
5
with_items : " {{python_dependencies}}"
6
6
7
7
- name : Download python tarball
Original file line number Diff line number Diff line change 15
15
apt : name={{python_package_name}} update_cache=yes cache_valid_time=86400
16
16
17
17
- name : Get python version
18
- shell : " apt-cache show {{python_package_name}} | grep 'Version:' | awk '{print $2}'"
18
+ shell : " apt-cache show {{python_package_name}} | grep 'Version:' | awk '{print $2}' | cut -d. -f1"
19
+ check_mode : no
19
20
register : python_version_output
20
21
21
22
- name : Set python_major_version
22
23
set_fact :
23
- python_major_version : " {{python_version_output.stdout_lines[0][0] }}"
24
+ python_major_version : " {{python_version_output.stdout }}"
24
25
25
26
- name : Get python location
26
27
command : " which python{{python_major_version}}"
28
+ check_mode : no
27
29
register : python_location_output
28
30
29
31
- name : Set python_path
30
32
set_fact :
31
- python_path : " {{python_location_output.stdout_lines[0] }}"
33
+ python_path : " {{python_location_output.stdout }}"
Original file line number Diff line number Diff line change 22
22
include : install_pip.yml
23
23
when : pip_installed.stat.exists == false
24
24
25
- - name : Upgrade pip
26
- pip : name=pip state=latest executable="{{python_pip_path}}" umask="{{python_pip_umask}}"
27
-
28
25
- name : Add system pip.conf
29
26
template :
30
27
src : pip.conf.j2
35
32
when : python_pip_config is defined
36
33
37
34
# Install packages
38
- - name : Install/upgrade virtualenv
39
- pip : name=virtualenv state=latest executable="{{python_pip_path}}" umask="{{python_pip_umask}}"
35
+ - name : Install virtualenv
36
+ pip : name=virtualenv executable="{{python_pip_path}}" umask="{{python_pip_umask}}"
40
37
when : python_major_version == '2'
41
38
42
39
- name : Install global packages
You can’t perform that action at this time.
0 commit comments