fix up python-test.yml

This commit is contained in:
Chris Hammer
2022-03-11 03:21:02 -05:00
parent e070d1b4a8
commit ebe0b86eb9

View File

@ -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
... ...