# Ansible - Generating OpenSSL Private Keys

**URL:** <https://forum.ansible.com/t/ansible-generating-openssl-private-keys/24992>\
**Category:** Ansible Project\
**Created:** [July 15, 2017, 12:55am UTC](https://forum.ansible.com/t/ansible-generating-openssl-private-keys/24992 "2017-07-15T00:55:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rod](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@Rod](https://forum.ansible.com/u/Rod)\
**Post date:** [July 15, 2017, 12:55am UTC](https://forum.ansible.com/t/ansible-generating-openssl-private-keys/24992/1 "2017-07-15T00:55:01Z")

</div>

Hello!  
I installed pyOpenSSL with this command: “yum install pyOpenSSL”

Then I try to run an Ansible playbook which generates a public key but I got this error: "FAILED! =\> {“changed”: false, “failed”: true, “msg”: “the python pyOpenSSL module is required}”

Anyone knows why? I know I have pyOpenSSL because when I check it, I get this message: “Package python26-pyOpenSSL-0.10-2.8.amzn1.x86\_64 already installed and latest version”

My playbook code is:  
-openssl\_privatekey:  
path: /etc/ssl/private/ansible.com.pem  
size: 2048

Thank you in advance.
