We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96af67a + 282af94 commit 82a3051Copy full SHA for 82a3051
tasks/install_package.yml
@@ -15,7 +15,7 @@
15
apt: name={{python_package_name}} update_cache=yes cache_valid_time=86400
16
17
- name: Get python version
18
- shell: "apt-cache show {{python_package_name}} | grep 'Version:' | awk '{print $2}' | cut -d. -f1"
+ shell: "apt-cache policy {{python_package_name}} | grep 'Installed:' | awk '{print $2}' | cut -d. -f1"
19
check_mode: no
20
register: python_version_output
21
changed_when: False #This just polls the system for information and doesn't change system information
0 commit comments