Do not hardcode python executable in test (#17380)

Based on https://github.com/ansible/ansible/pull/17376
This commit is contained in:
Michael Scherer
2016-09-03 19:21:22 +02:00
committed by Matt Clay
parent 4ae59b2743
commit 918d1e038e
5 changed files with 6 additions and 6 deletions

View File

@@ -42,7 +42,7 @@
# VERIFY CONTENTS
- name: check what python version ansible is running on
command: python -c 'import distutils.sysconfig ; print(distutils.sysconfig.get_python_version())'
command: "{{ ansible_python.executable }} -c 'import distutils.sysconfig ; print(distutils.sysconfig.get_python_version())'"
register: pyver
delegate_to: localhost