Password prompt everytime I run a playbook is annoying

0 votes
Every time I execute an ansible playbook which is encrypted, it prompts for a password. I don't see the whole idea of automation here.
Mar 6 in Ansible by Ruth
38 views

1 answer to this question.

0 votes

So Ansible provides a feature called vault password file. It's a file that contains passwords needed to encrypt the files. You can reference this file while executing the playbook and now that's called automation. You can reference the password file in the following manner:

ansible-playbook site.yaml --vault-password-file ~/ .vault_pass.txt
answered Mar 6 by William

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Is it possible to run an Ansible Playbook in python script?

Hey @Cerci, Of course its possible. You ...READ MORE

answered Jan 17 in Ansible by Nicolas
1,591 views
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
114 views
0 votes
1 answer
0 votes
1 answer

Is it possible to run a playbook with a crontab?

Ofcourse you can run ansible playbook with ...READ MORE

answered Jan 17 in Ansible by Yesha
277 views
0 votes
1 answer