Use correct python for -c invocations in tests. (#54577)

* Use correct python for -c invocations in tests.
* Only set releasever when available.
This commit is contained in:
Matt Clay
2019-03-29 01:19:51 -07:00
committed by GitHub
parent af2e5fc761
commit 8d96af2df5
6 changed files with 9 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
# when: ansible_os_family == "Darwin"
- name: Get lxml version
command: python -c 'from lxml import etree; print(".".join(str(v) for v in etree.LXML_VERSION))'
command: "{{ ansible_python_interpreter }} -c 'from lxml import etree; print(\".\".join(str(v) for v in etree.LXML_VERSION))'"
register: lxml_version
- name: Set lxml capabilities as variables