title: Where i can put common variable outside playbook in ansible
body: <p>I am using playboooks to run my modules. i have a doubt, whether i can put my common variables outside playbook due to following reasons</p>
  
  <ol>
  <li>Security reason like username and password</li>
  <li>To reduce the repetitive code by using putting global variabble at common place and loc of playbook.</li>
  </ol>
  
  <p>Right now my playbook looks like some thing below:</p>
  
  <pre><code>      - hosts: localhost
          tasks:
            - name: Get all Storage Service Levels
              StorageServiceLevelModule: host=&lt;ip&gt; port=&lt;port&gt; user=admin password=&lt;password&gt;
                 action=get name='my_ssl'
              register: jsonResultforSSLs
  
            - name: print the SSL key
              debug: msg="{{ jsonResultforSSLs.meta.result.records[0].key}}"
  
  
            - name: Get all Storage VMs
              StorageVMModule: host=&lt;ip&gt; port=&lt;port&gt; user=admin password=&lt;password&gt;
                 action=get name=my_svm
              register: jsonResultforSVMs
  </code></pre>
  
  <p>I want to put </p>
  
  <pre><code>   host=&lt;ip&gt; port=&lt;port&gt; user=admin password=&lt;password&gt; 
  </code></pre>
  
  <p>outside playbook and use it in all tasks of my playbooks. How can I do this ?</p>
  
  <p>Please let me know if any clarification is required.</p>