title: how to execute python script with command line using yml parsing in ansible?
body: <p>Hi i have a script which i use to deploy artifacts, And we use command line to execute it. I need to deploy artifacts with Ansible using python script and command line.so i do not have idea how my yml file would be. I tried checking on some places but was not able to get correct format.</p>
  
  <p>i tried and made <code>scriptname.yml</code> in playbook.</p>
  
  <pre><code>- hosts: control
  
    tasks:
  
    command '/usr/bin/python /usr/name/scriptname.py'
  </code></pre>
  
  <p>in this script location is <code>/usr/name/scriptname.py</code></p>
  
  <p>and command line would be like <code>./scriptname.py app</code></p>