|
|
@ -65,18 +65,21 @@ options:
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
|
# Generate an OpenSSL public key.
|
|
|
|
# Generate an OpenSSL public key.
|
|
|
|
- openssl_publickey: path=/etc/ssl/public/ansible.com.pem
|
|
|
|
- openssl_publickey:
|
|
|
|
privatekey_path=/etc/ssl/private/ansible.com.pem
|
|
|
|
path: /etc/ssl/public/ansible.com.pem
|
|
|
|
|
|
|
|
privatekey_path: /etc/ssl/private/ansible.com.pem
|
|
|
|
|
|
|
|
|
|
|
|
# Force regenerate an OpenSSL public key if it already exists
|
|
|
|
# Force regenerate an OpenSSL public key if it already exists
|
|
|
|
- openssl_publickey: path=/etc/ssl/public/ansible.com.pem
|
|
|
|
- openssl_publickey:
|
|
|
|
privatekey_path=/etc/ssl/private/ansible.com.pem
|
|
|
|
path: /etc/ssl/public/ansible.com.pem
|
|
|
|
force=True
|
|
|
|
privatekey_path: /etc/ssl/private/ansible.com.pem
|
|
|
|
|
|
|
|
force: True
|
|
|
|
|
|
|
|
|
|
|
|
# Remove an OpenSSL public key
|
|
|
|
# Remove an OpenSSL public key
|
|
|
|
- openssl_publickey: path=/etc/ssl/public/ansible.com.pem
|
|
|
|
- openssl_publickey:
|
|
|
|
privatekey_path=/etc/ssl/private/ansible.com.pem
|
|
|
|
path: /etc/ssl/public/ansible.com.pem
|
|
|
|
state=absent
|
|
|
|
privatekey_path: /etc/ssl/private/ansible.com.pem
|
|
|
|
|
|
|
|
state: absent
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
RETURN = '''
|
|
|
|
RETURN = '''
|
|
|
|