Test whether python commands can be executed

This changes the test to rely on whether the binaries are available
regardless of how they were installed or from which package.
This commit is contained in:
Till Maas 2018-05-25 19:50:07 +02:00
parent baae5ab9f9
commit 47c7b638f0

View file

@ -36,9 +36,7 @@
with_fileglob:
- helpers/*
- package:
name: python2
state: present
- command: python2 --version
ignore_errors: true
register: python2_available
@ -46,9 +44,7 @@
when: python2_available is succeeded
register: python2_result
- package:
name: python3
state: present
- command: python3 --version
ignore_errors: true
register: python3_available