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, 2019 in Ansible by Ruth
1,706 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 7, 2019 by William

Related Questions In Ansible

0 votes
1 answer

Running Ansible Bash profile shows messages everytime a terminal is opened

Change the bash profile to read like ...READ MORE

answered Jan 14, 2019 in Ansible by Cobe
1,780 views
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, 2019 in Ansible by Nicolas
15,660 views
0 votes
1 answer
0 votes
1 answer

Is there a way to recover lost Ansible Vault password?

Hey @Sridhar, There is no way to ...READ MORE

answered Jan 29, 2019 in Ansible by Akthia
2,921 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,024 views
+2 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, 2019 in Ansible by Yesha
4,894 views
0 votes
1 answer

How do I wget a file from web server using shell in the ansible playbook

Hey Ayaan, you could probably use this ...READ MORE

answered Jan 24, 2019 in Ansible by Anushri
4,151 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP