diff --git a/lib/ansible/modules/extras/crypto/openssl_privatekey.py b/lib/ansible/modules/extras/crypto/openssl_privatekey.py index f7da9d11053..e9be5e35635 100644 --- a/lib/ansible/modules/extras/crypto/openssl_privatekey.py +++ b/lib/ansible/modules/extras/crypto/openssl_privatekey.py @@ -73,16 +73,23 @@ options: EXAMPLES = ''' # Generate an OpenSSL private key with the default values (4096 bits, RSA) # and no public key -- openssl_privatekey: path=/etc/ssl/private/ansible.com.pem +- openssl_privatekey: + path: /etc/ssl/private/ansible.com.pem # Generate an OpenSSL private key with a different size (2048 bits) -- openssl_privatekey: path=/etc/ssl/private/ansible.com.pem size=2048 +- openssl_privatekey: + path: /etc/ssl/private/ansible.com.pem + size: 2048 # Force regenerate an OpenSSL private key if it already exists -- openssl_privatekey: path=/etc/ssl/private/ansible.com.pem force=True +- openssl_privatekey: + path: /etc/ssl/private/ansible.com.pem + force: True # Generate an OpenSSL private key with a different algorithm (DSA) -- openssl_privatekey: path=/etc/ssl/private/ansible.com.pem type=DSA +- openssl_privatekey: + path: /etc/ssl/private/ansible.com.pem + type: DSA ''' RETURN = ''' diff --git a/lib/ansible/modules/extras/crypto/openssl_publickey.py b/lib/ansible/modules/extras/crypto/openssl_publickey.py index 3fb2de85ae7..c01364c8ce8 100644 --- a/lib/ansible/modules/extras/crypto/openssl_publickey.py +++ b/lib/ansible/modules/extras/crypto/openssl_publickey.py @@ -65,18 +65,21 @@ options: EXAMPLES = ''' # Generate an OpenSSL public key. -- openssl_publickey: path=/etc/ssl/public/ansible.com.pem - privatekey_path=/etc/ssl/private/ansible.com.pem +- openssl_publickey: + 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 -- openssl_publickey: path=/etc/ssl/public/ansible.com.pem - privatekey_path=/etc/ssl/private/ansible.com.pem - force=True +- openssl_publickey: + path: /etc/ssl/public/ansible.com.pem + privatekey_path: /etc/ssl/private/ansible.com.pem + force: True # Remove an OpenSSL public key -- openssl_publickey: path=/etc/ssl/public/ansible.com.pem - privatekey_path=/etc/ssl/private/ansible.com.pem - state=absent +- openssl_publickey: + path: /etc/ssl/public/ansible.com.pem + privatekey_path: /etc/ssl/private/ansible.com.pem + state: absent ''' RETURN = '''