Re: [ansible-project] Sending ansible output to python function

2020-06-15 Thread Brian Coca
You can use a callback plugin, they are the ones that process 'output' from a play/task. -- -- Brian Coca -- 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

Re: [ansible-project] Sending ansible output to python function

2020-06-11 Thread Abhijeet Kasurde
You can write a custom module and send the "output_cardTable" to it. Have your business logic in that custom module. You can read more about module development here - https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#developing-modules-general On Thu, Jun 11, 2020

Re: [ansible-project] Sending ansible output to python function

2020-06-11 Thread Srinivas Naram
Did you try to initiate Ansible playbook from Python code and capture Ansible output directly in the Python code ? You can use os module for it. Try using os.system('ansible-playbook wrote: > Hello, > > I have posted the following at >

[ansible-project] Sending ansible output to python function

2020-06-11 Thread 'Douglas R Christensen' via Ansible Project
Hello, I have posted the following at https://stackoverflow.com/questions/62309274/how-to-have-ansible-send-output-to-a-python-function-in-a-custom-library, but I wanted to share here to get some more insight. I am a newbie at working with Ansible and Python and I am attempting to develop an