title: Ansible - Using an encrypted string as variable
body: <p>I'm trying to use an encrypted password for the credential of SVN.<br>
  Unfortunately I get an error.<br>
  My task:</p>
  
  <pre><code>- name: Export subversion directory to folder
    vars: 
      svn_pass: !vault |
              $ANSIBLE_VAULT;1.1;AES256
              61366435663930323762326534376237329939319321939999373334616364343865333830333435
              6338646239363735376431633863333632363135383963390a636664353535663366336263626264
              39616366333132316531653461646365393332386365366264613931383165366235343238336463
              3438336335613838380a393037613636396564326465396132613162326335313932626135666333
              3630
    subversion:
      repo: svn://myserver/trunk
      dest: /tmp/svn
      username: svnuser
      password: {{ svn_pass }}
    become: true
  </code></pre>
  
  <p>The error I get:</p>
  
  <blockquote>
    <p>The offending line appears to be:</p>
  
  <pre><code>username: ****
  
  password: {{ svn_pass }}
  
             ^ here
  </code></pre>
    
    <p>We could be wrong, but this one looks like it might be an issue with</p>
    
    <p>missing quotes. Always quote template expression brackets when they</p>
    
    <p>start a value. For instance:</p>
  
  <pre><code>with_items:
  
    - {{ foo }}
  </code></pre>
    
    <p>Should be written as:</p>
  
  <pre><code>with_items:
  
    - "{{ foo }}"
  </code></pre>
  </blockquote>