mirror of
https://github.com/linux-system-roles/network.git
synced 2026-08-04 08:43:20 +00:00
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:
parent
baae5ab9f9
commit
47c7b638f0
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue