# Ansible-vault is not asking for password when creating a new vault key

**URL:** <https://forum.ansible.com/t/ansible-vault-is-not-asking-for-password-when-creating-a-new-vault-key/38078>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [June 9, 2023, 6:22pm UTC](https://forum.ansible.com/t/ansible-vault-is-not-asking-for-password-when-creating-a-new-vault-key/38078 "2023-06-09T18:22:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [June 9, 2023, 6:22pm UTC](https://forum.ansible.com/t/ansible-vault-is-not-asking-for-password-when-creating-a-new-vault-key/38078/1 "2023-06-09T18:22:09Z")

</div>

> Ansible-vault is not asking for password when creating a new vault key

What does this mean?  
What commands did you use?  
What are you trying to achieve?

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [June 9, 2023, 6:30pm UTC](https://forum.ansible.com/t/ansible-vault-is-not-asking-for-password-when-creating-a-new-vault-key/38078/2 "2023-06-09T18:30:43Z")

</div>

when I do anisble-vault create secrets.yml, it never ask for password to create and secondly when I try to encrypt or decrypt old secrets which I created some time back, is it because I have added the password location in my ansible.cfg file?

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [June 9, 2023, 9:24pm UTC](https://forum.ansible.com/t/ansible-vault-is-not-asking-for-password-when-creating-a-new-vault-key/38078/3 "2023-06-09T21:24:22Z")

</div>

Correct
