Not able to execute python3.8 code with ansible
Not able to execute python3.8 code with ansible Question: I have a playbook: — – hosts: all gather_facts: true tasks: – name: test shell: cmd: python /tmp/test.py chdir: /tmp/ async: 150 poll: 5 become: true register: test – debug: msg={{test}} Below is the host file for me: xx.xxx.xxx.xx ansible_ssh_user=xxx ansible_ssh_pass=xxxxxxxxxxxxxxx ansible_sudo_pass=xxxxxxxxxxxxxxx ansible_ssh_common_args=’-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no’ …