# Keyword in playbook to include vault

**URL:** <https://forum.ansible.com/t/keyword-in-playbook-to-include-vault/17139>\
**Category:** Ansible Project\
**Created:** [December 23, 2014, 11:09pm UTC](https://forum.ansible.com/t/keyword-in-playbook-to-include-vault/17139 "2014-12-23T23:09:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Martin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Post date:** [December 23, 2014, 11:09pm UTC](https://forum.ansible.com/t/keyword-in-playbook-to-include-vault/17139/1 "2014-12-23T23:09:20Z")

</div>

Is there a way to have a playbook for a particular server know to prompt for a vault password automatically, rather than needing to pass --ask-vault-pass on the command line? I only store encrypted information in a vault for some of my servers, so I do only need to use --ask-vault-pass on some of them, and it would be nice if I could just define: use\_vault: True or something similar in the playbook rather than needing to pass an argument on the command line. Is this possible?

Thanks,

Andrew

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 24, 2014, 1:28pm UTC](https://forum.ansible.com/t/keyword-in-playbook-to-include-vault/17139/2 "2014-12-24T13:28:25Z")

</div>

No, not currently.
