mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2026-02-03 23:01:49 +00:00
Add query to find command between python and python3 (#715)
* Add query to find command between python and python3 * Cut extra $
This commit is contained in:
parent
74ea0438ce
commit
06e23c8ac3
1 changed files with 3 additions and 3 deletions
|
|
@ -42,8 +42,8 @@
|
|||
- connector_name == 'mysqlclient'
|
||||
|
||||
- name: Get the python version in use
|
||||
ansible.builtin.command:
|
||||
cmd: python -V
|
||||
ansible.builtin.shell:
|
||||
cmd: echo $( $(command -v python || command -v python3) -V )
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
register: python_version_in_use
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
ansible.builtin.debug:
|
||||
msg: >
|
||||
Python in use inside the test container:
|
||||
${{ python_version_in_use }}
|
||||
{{ python_version_in_use.stdout }}
|
||||
when:
|
||||
- python_version_in_use is defined
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue