On 22.05.2019 16:45, James wrote:
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
responses:
Enter password:
- MySecretPassword
- 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
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/95b2b66fb1661e3e14cc0afe1b4f22ec%40olstad.com.
For more options, visit https://groups.google.com/d/optout.