title: Ansible-vault doesn't work with --vault-password-file
body: <p>for some kind of yml files that we have to store passwords (of MySQL users) we use ansible-vault encrypt to maintain some security.</p>
  
  <p>The problem is every time we have to edit we are forced to input the password.</p>
  
  <p>I was looking how to fix this and seems is pretty easy but I couldn't make it work yet.</p>
  
  <p>I've created a file in my home directory called:</p>
  
  <pre><code>.vault_pass.txt
  </code></pre>
  
  <p>inside of that, I have the password. And in the ansible.cfg in my repository I have the variable:</p>
  
  <pre><code>vault_password_file = ~/.vault_pass.txt
  </code></pre>
  
  <p>Didn't work as expected. So I tried to force ansible-vault command to read the file with this parameter</p>
  
  <pre><code># ansible-vault decrypt --vault-password-file ~/.vault_pass.txt vars/vars-mysql-config.yml
  </code></pre>
  
  <p>Output error:</p>
  
  <pre><code>ERROR! input is not vault encrypted data for vars/vars-mysql-config.yml
  </code></pre>
  
  <p>It seems I forgot something here but I wasn't able to find the right info. </p>
  
  <p>Anyone has any idea about that?</p>
  
  <p>Thanks guys!</p>