fix up python-test.yml
This commit is contained in:
@ -10,11 +10,6 @@
|
|||||||
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Debug python interpreter
|
|
||||||
debug:
|
|
||||||
var: ansible_python_interpreter
|
|
||||||
|
|
||||||
|
|
||||||
- name: Install python packages
|
- name: Install python packages
|
||||||
package :
|
package :
|
||||||
name : "{{ item }}"
|
name : "{{ item }}"
|
||||||
@ -26,21 +21,19 @@
|
|||||||
- install_pkgs|bool
|
- install_pkgs|bool
|
||||||
|
|
||||||
|
|
||||||
- name: Check python version
|
- name: Debug python interpreter
|
||||||
command: "{{ ansible_python_interpreter }} --version"
|
|
||||||
register: r_python_version
|
|
||||||
|
|
||||||
|
|
||||||
- name: Show python 2 version
|
|
||||||
debug:
|
debug:
|
||||||
var: r_python_version.stderr
|
var: ansible_python_interpreter
|
||||||
when: r_python_version.stderr != ""
|
|
||||||
|
|
||||||
|
|
||||||
- name: Show python 3 version
|
- name: Check Python version
|
||||||
debug:
|
debug:
|
||||||
var: r_python_version.stdout
|
var: ansible_python_version
|
||||||
when: r_python_version.stdout != ""
|
|
||||||
|
|
||||||
|
- name: Check executable
|
||||||
|
debug:
|
||||||
|
var: ansible_python.executable
|
||||||
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Reference in New Issue
Block a user