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

17 views
Skip to first unread message

Narmada Karthika

unread,
Jun 9, 2023, 1:44:37 PM6/9/23
to Ansible Project
Ansible-vault is not asking for password when creating a new vault key

ansible [core 2.11.12]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/user/.local/lib/python3.6/site-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.6.8 (default, Nov 16 2020, 16:55:22) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
  jinja version = 3.0.3
  libyaml = False

Dick Visser

unread,
Jun 9, 2023, 2:22:37 PM6/9/23
to ansible...@googlegroups.com
On Fri, 9 Jun 2023 at 19:43, Narmada Karthika <chitt...@gmail.com> wrote:
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?


config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/user/.local/lib/python3.6/site-packages/ansible
  ansible collection location = /home/teamci-deploy-user/.ansible/collections:/usr/share/ansible/collections

  executable location = /usr/local/bin/ansible
  python version = 3.6.8 (default, Nov 16 2020, 16:55:22) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
  jinja version = 3.0.3
  libyaml = False



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/23584f4b-c151-4793-8d8e-b03c51a193f8n%40googlegroups.com.
--
Sent from Gmail Mobile

Narmada Karthika

unread,
Jun 9, 2023, 2:30:43 PM6/9/23
to Ansible Project
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?

Dick Visser

unread,
Jun 9, 2023, 5:24:52 PM6/9/23
to ansible...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages