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
15 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
594 views
0 votes
1 answer
+13 votes
2 answers
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
94 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.