title: Running python function in ansible
body: <p>python script test.py:</p>
  
  <pre><code>class Test:
      def __init__(self):
          pass
  
  
  
      def addition(self, a, b):
          return a + b
  </code></pre>
  
  <p>Below is the ansible playbook to execute Python script.</p>
  
  <pre><code>---
  - name: execute install script
    script: test.py
  </code></pre>
  
  <p>Instead of calling complete python script, Is it possible to  call only addition method in test.py  during ansible playbook execution</p>