# Vormetric driver install

**URL:** <https://forum.ansible.com/t/vormetric-driver-install/30400>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [May 22, 2019, 2:45pm UTC](https://forum.ansible.com/t/vormetric-driver-install/30400 "2019-05-22T14:45:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James2](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@James2](https://forum.ansible.com/u/James2)\
**Post date:** [May 22, 2019, 2:45pm UTC](https://forum.ansible.com/t/vormetric-driver-install/30400/1 "2019-05-22T14:45:23Z")

</div>

I have been unsuccessful at installing a Vormetric driver onto CentOS. I am using the ‘expect’ module and have tried various question:answer pairs, but nothing completes successfully. Due to the isolated environment I work in, I am unable to copy the playbook I’m using, but I do have the driver in my email and could share it with anyone who is willing to attempt a test install. It would probably make more sense that way, so you can see the full prompts yourself. If anyone is willing to help, feel free to reach out. I also checked Ansible Galaxy and there was nothing there, so this is a last-ditch effort. I have 360 servers that need this driver installed, so I’m hoping someone can help.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [May 25, 2019, 3:35pm UTC](https://forum.ansible.com/t/vormetric-driver-install/30400/2 "2019-05-25T15:35:51Z")

</div>

> I have been unsuccessful at installing a Vormetric driver onto CentOS. I  
> am using the 'expect' module and have tried various question:answer pairs,  
> but nothing completes successfully. Due to the isolated environment I  
> work in, I am unable to copy the playbook I'm using, but I do have the  
> driver in my email and could share it with anyone who is willing to attempt  
> a test install. It would probably make more sense that way, so you can see  
> the full prompts yourself.

Running random code from a random guy on the Internet that's not going to happen.

> If anyone is willing to help, feel free to  
> reach out. I also checked Ansible Galaxy and there was nothing there, so  
> this is a last-ditch effort. I have 360 servers that need this driver  
> installed, so I'm hoping someone can help.

I can always help with the expect part.  
There are two things people usually gets wrong.

The responses in the expect module is a dict, that mean that it can only have one key, but the key can have multiple values in form of a list.  
So if you have the text "Enter password" twice the responses would be

&nbsp;&nbsp;&nbsp;responses:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enter password:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- MySecretPassword

The second thing is that expect is regex, so any regex special character[1] that you mean literately must be escaped with a backslash.

[1] [https://docs.python.org/2/library/re.html#regular-expression-syntax](https://docs.python.org/2/library/re.html#regular-expression-syntax)
