Hi all I want to execute a python script which is available in control node. And the python script uses the ansible_hostname variable and update in an excel template available in the control node.
My role is very simple: - name: execute python script script: ./roles/writetoexcel.py {{ ansible_hostname }} args: executable: python3 Since this role executes the python file in the remote node it is failing. Python3 command not found.. my intention is to run this python script in the control node for all the hosts and just use the ansible_hostname variable from ansible to update the excel which is also available in local. Regards Prady -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEuB3Ap5uF35U1Y0KApx5k0N4Rj%3DX-BcwXKf_pW7XAc8WbR7Cw%40mail.gmail.com.