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,13 +10,8 @@
tasks:
- name: Debug python interpreter
debug:
var: ansible_python_interpreter
- name: Install python packages
package:
package :
name : "{{ item }}"
state : present
with_items:
@ -26,21 +21,19 @@
- install_pkgs|bool
- name: Check python version
command: "{{ ansible_python_interpreter }} --version"
register: r_python_version
- name: Show python 2 version
- name: Debug python interpreter
debug:
var: r_python_version.stderr
when: r_python_version.stderr != ""
var: ansible_python_interpreter
- name: Show python 3 version
- name: Check Python version
debug:
var: r_python_version.stdout
when: r_python_version.stdout != ""
var: ansible_python_version
- name: Check executable
debug:
var: ansible_python.executable
...