title: How to override some specific variables values in Ansible playbook
body: <p>I have some multiple war files which I am downloading from nexus and creating the respective app folder on my remote host and copying the files. 
  Now there are 2 files which have a different name as war file but need to create a directory with different name. What I am doing right now is this -</p>
  
  <pre><code>- name: Ensuring the web deployment folder is created on tomcat nodes for each web application
     file:
       path: "{{tomcat_server_release_location}}/Release{{my_release_version}}/{{item}}"
       state: directory
       mode: 0777
     with_items:
      - "{{ apps }}"
  
  - name: Copying the release from Admin server to tomcat nodes
     copy: src={{admin_server_release_location}}/{{my_release_version}}/{{item}}-{{my_release_version}}.war dest={{tomcat_server_release_location}}/Release{{my_release_version}}/{{item}}
     with_items:
      - "{{ apps }}"
  </code></pre>
  
  <p>apps variable is defined like this - 
  <code>webapps: ['test1','test2','test3','test4']</code>.
   Now test2 has a different name on the nexus it says test2-web.war but on the remote node I have to create a folder called just test2 and copy the war file in there. </p>
  
  <p>Is there a way to override some variables at run time of playbook by using some condition or anything</p>