<p dir="auto">Instead of given the argument <code class="notranslate">--vault-password-file &lt;file&gt;</code> by cli. I would like to have an option in ansible.cfg to set it in defaults:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
vault-password-file = &lt;file&gt;"><pre class="notranslate"><code class="notranslate">[defaults]
vault-password-file = &lt;file&gt;
</code></pre></div>
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Feature Idea</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.5.4</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Ubuntu 14.04</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">I'm using vaults and have the password stored inside a vault-password-file. I don't like to add the <code class="notranslate">--vault-password-file=~/.ansible_vault_password.txt</code> to it every time I run commands (like <code class="notranslate">ansible</code> and <code class="notranslate">ansible-vault</code>). Would be great if it would read this setting out of <code class="notranslate">ansible.cfg</code></p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Add <code class="notranslate">vault_password_file=file.txt</code> to <code class="notranslate">ansible.cfg</code></p>