diff --git a/run_python_script.yml b/run_python_script.yml index 576ffa3..86529a2 100644 --- a/run_python_script.yml +++ b/run_python_script.yml @@ -27,7 +27,7 @@ msg: "{{ installed_packages.stdout }}" - name: Run the Python script - command: python3 scripts/my_script.py + command: /tmp/ansible_venv/bin/python3 scripts/my_script.py register: script_output - name: Show script output