# how can i call DataLoader.set\_vault\_password in ansible 2.4.2

**URL:** <https://forum.ansible.com/t/how-can-i-call-dataloader-set-vault-password-in-ansible-2-4-2/26215>\
**Category:** Ansible Project\
**Created:** [December 7, 2017, 2:42am UTC](https://forum.ansible.com/t/how-can-i-call-dataloader-set-vault-password-in-ansible-2-4-2/26215 "2017-12-07T02:42:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony.yang](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@tony.yang](https://forum.ansible.com/u/tony.yang)\
**Post date:** [December 7, 2017, 2:42am UTC](https://forum.ansible.com/t/how-can-i-call-dataloader-set-vault-password-in-ansible-2-4-2/26215/1 "2017-12-07T02:42:15Z")

</div>

Hi guys

being a rookie of Ansible

I’m trying to call playbook from ansible api,using password, unfortunately find out that DataLoader doesn’t have `set_vault_password` any more

dataloader.py

Usage:

```auto
   dl = DataLoader()
   # optionally: dl.set_vault_password('foo')
   ds = dl.load('...')
   ds = dl.load_from_file('/path/to/file')

```

‘’’

what should I do if I don’t want to save my password in a vault-password-file?
