- hosts: localhost gather_facts: no tasks: - name: test register: results args: stdin: | import sys print(sys.version) command: /usr/bin/python3 - debug: var: results