title: Jenkins/ansible-vault bug?
body: <p>I'm using a Jenkins job with an ansible-playbook.
  I have encrypted my private key from AWS EC2 with ansible-vault.
  When I start my job in Jenkins, I have that key specified in the vault section. But when playbook tries to connect, it gets an error:</p>
  <pre><code>UNREACHABLE! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;Failed to connect to the host via ssh: Load key \&quot;/home/ubuntu/workspace/triggered_by_gitlab/ansible/ec2_key.pem\&quot;: invalid format\r\nubuntu@172.31.6.81: Permission denied (publickey).&quot;, &quot;unreachable&quot;: true}
  </code></pre>
  <p>When I run this playbook with <code>--ask-vault-pass</code>, same error.</p>
  <p>But when I decrypt it manually with <code>ansible-vault decrypt file_name</code>, and run ansible playbook from my ansible machine CLI, no error is raised.</p>