# Create Oracle Wallet with expect module

**URL:** <https://forum.ansible.com/t/create-oracle-wallet-with-expect-module/35297>\
**Category:** Ansible Project\
**Created:** [June 7, 2021, 3:06pm UTC](https://forum.ansible.com/t/create-oracle-wallet-with-expect-module/35297 "2021-06-07T15:06:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcoussi](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mcoussi/32/8056_2.png) [@mcoussi](https://forum.ansible.com/u/mcoussi)\
**Post date:** [June 7, 2021, 3:06pm UTC](https://forum.ansible.com/t/create-oracle-wallet-with-expect-module/35297/1 "2021-06-07T15:06:39Z")

</div>

Hi,

I try to create an Oracle Wallet with expect module.

I pass the question and the answer to expect module :

# Création du Wallet

- name : “{{ titre\_post\_provision\_oracle\_wallet }} - Création du Wallet”  
expect:  
command: /bin/bash -c “source {{ oracle\_home }}/.bash\_profile ; mkstore -create -wrl $ORACLE\_HOME/network/admin”  
responses:  
(?i)Enter password: “{{ tmp\_wallet\_password }}”  
(?i)Enter password again: “{{ tmp\_wallet\_password }}”  
register: tmp\_create\_wallet  
delegate\_to: “{{tmp\_dbserver\_ipadress}}”

But in the stdout i have this message :

“stdout\_lines”: [  
“Oracle Secret Store Tool : Version 11.2.0.4.0 - Production”,  
“Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.”,  
“”,  
“Enter password: \b\b\b \b\b\b \b\b\b …”,  
“Enter password again: \b\b\b \b\b\b \b\b\b …”

And the Wallet does not work.

Thanks for your help,

Matt

---

<div class="post-metadata">

**Author:** ![mcoussi](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mcoussi/32/8056_2.png) [@mcoussi](https://forum.ansible.com/u/mcoussi)\
**Post date:** [June 8, 2021, 7:59am UTC](https://forum.ansible.com/t/create-oracle-wallet-with-expect-module/35297/2 "2021-06-08T07:59:49Z")

</div>

Hi,  
I resolved my problem by to take off [source {{ oracle\_home }}/.bash\_profile].

Regards,  
Matthieu
