title: Ansible playbook with vault file
body: <p>I'm attempting to run a playbook using a vault file, <a href="http://docs.ansible.com/ansible/playbooks_vault.html" rel="nofollow">according to the docs</a> by using the <code>--vault-password-file</code> option.</p>
  
  <p>Here is my command:</p>
  
  <pre><code>sudo -u ubuntu -H sh -c "cd ~/overseer; ansible-playbook generate_keys.yml -l mgmt --vault-password-file ~/.vaultpw"
  </code></pre>
  
  <p>When running that, I get this output:</p>
  
  <pre><code>ERROR: problem running / h o m e / u b u n t u / . v a u l t p w ([Errno 8] Exec format error)
  </code></pre>
  
  <p>I've tried using <code>/home/ubuntu/.vaultpw</code> to no avail.</p>
  
  <p>Also according to the docs, I have proper permissions on the file to read.</p>
  
  <p>How can I fix this?  It's not reading my vault password file correctly, it looks like it is interpreting each character as another argument</p>