File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
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 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 }}"
You can’t perform that action at this time.
0 commit comments