diff --git a/plugins/modules/acme_account_info.py b/plugins/modules/acme_account_info.py index 6826587f..92033fe9 100644 --- a/plugins/modules/acme_account_info.py +++ b/plugins/modules/acme_account_info.py @@ -101,7 +101,7 @@ account: returned: always type: list elements: str - sample: "['mailto:me@example.com', 'tel:00123456789']" + sample: ['mailto:me@example.com', 'tel:00123456789'] status: description: the account's status returned: always diff --git a/plugins/modules/acme_certificate.py b/plugins/modules/acme_certificate.py index 2b33760c..60f113f1 100644 --- a/plugins/modules/acme_certificate.py +++ b/plugins/modules/acme_certificate.py @@ -468,7 +468,20 @@ authorizations: - Maps an identifier to ACME authorization objects. See U(https://tools.ietf.org/html/rfc8555#section-7.1.4). returned: changed type: dict - sample: '{"example.com":{...}}' + sample: + example.com: + identifier: + type: dns + value: example.com + status: valid + expires: '2022-08-04T01:02:03.45Z' + challenges: + - url: https://example.org/acme/challenge/12345 + type: http-01 + status: valid + token: A5b1C3d2E9f8G7h6 + validated: '2022-08-01T01:01:02.34Z' + wildcard: false order_uri: description: ACME order URI. returned: changed diff --git a/plugins/modules/acme_inspect.py b/plugins/modules/acme_inspect.py index ac51e9a7..c8a7a0af 100644 --- a/plugins/modules/acme_inspect.py +++ b/plugins/modules/acme_inspect.py @@ -184,7 +184,7 @@ directory: description: The ACME directory's content returned: always type: dict - sample: | + sample: { "a85k3x9f91A4": "https://community.letsencrypt.org/t/adding-random-entries-to-the-directory/33417", "keyChange": "https://acme-v02.api.letsencrypt.org/acme/key-change", @@ -204,7 +204,7 @@ headers: description: The request's HTTP headers (with lowercase keys) returned: always type: dict - sample: | + sample: { "boulder-requester": "12345", "cache-control": "max-age=0, no-cache, no-store", @@ -215,7 +215,7 @@ headers: "cookies_string": "", "date": "Wed, 07 Nov 2018 12:34:56 GMT", "expires": "Wed, 07 Nov 2018 12:44:56 GMT", - "link": ";rel=\"terms-of-service\"", + "link": ';rel="terms-of-service"', "msg": "OK (904 bytes)", "pragma": "no-cache", "replay-nonce": "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGH", diff --git a/plugins/modules/openssl_csr.py b/plugins/modules/openssl_csr.py index 14a2c1f1..e1467536 100644 --- a/plugins/modules/openssl_csr.py +++ b/plugins/modules/openssl_csr.py @@ -178,7 +178,7 @@ subject: returned: changed or success type: list elements: list - sample: "[('CN', 'www.ansible.com'), ('O', 'Ansible')]" + sample: [['CN', 'www.ansible.com'], ['O', 'Ansible']] subjectAltName: description: The alternative names this CSR is valid for returned: changed or success diff --git a/plugins/modules/openssl_csr_info.py b/plugins/modules/openssl_csr_info.py index d44b00c6..4e1d962e 100644 --- a/plugins/modules/openssl_csr_info.py +++ b/plugins/modules/openssl_csr_info.py @@ -82,7 +82,7 @@ basic_constraints: returned: success type: list elements: str - sample: "[CA:TRUE, pathlen:1]" + sample: ['CA:TRUE', 'pathlen:1'] basic_constraints_critical: description: Whether the C(basic_constraints) extension is critical. returned: success @@ -92,7 +92,7 @@ extended_key_usage: returned: success type: list elements: str - sample: "[Biometric Info, DVCS, Time Stamping]" + sample: [Biometric Info, DVCS, Time Stamping] extended_key_usage_critical: description: Whether the C(extended_key_usage) extension is critical. returned: success @@ -117,12 +117,12 @@ extensions_by_oid: returned: success type: str sample: "MAMCAQU=" - sample: '{"1.3.6.1.5.5.7.1.24": { "critical": false, "value": "MAMCAQU="}}' + sample: {"1.3.6.1.5.5.7.1.24": { "critical": false, "value": "MAMCAQU="}} key_usage: description: Entries in the C(key_usage) extension, or C(none) if extension is not present. returned: success type: str - sample: "[Key Agreement, Data Encipherment]" + sample: [Key Agreement, Data Encipherment] key_usage_critical: description: Whether the C(key_usage) extension is critical. returned: success @@ -134,7 +134,7 @@ subject_alt_name: returned: success type: list elements: str - sample: "[DNS:www.ansible.com, IP:1.2.3.4]" + sample: ["DNS:www.ansible.com", "IP:1.2.3.4"] subject_alt_name_critical: description: Whether the C(subject_alt_name) extension is critical. returned: success @@ -177,13 +177,13 @@ subject: - Note that for repeated values, only the last one will be returned. returned: success type: dict - sample: '{"commonName": "www.example.com", "emailAddress": "test@example.com"}' + sample: {"commonName": "www.example.com", "emailAddress": "test@example.com"} subject_ordered: description: The CSR's subject as an ordered list of tuples. returned: success type: list elements: list - sample: '[["commonName", "www.example.com"], ["emailAddress": "test@example.com"]]' + sample: [["commonName", "www.example.com"], ["emailAddress": "test@example.com"]] public_key: description: CSR's public key in PEM format returned: success @@ -292,14 +292,14 @@ authority_cert_issuer: returned: success type: list elements: str - sample: "[DNS:www.ansible.com, IP:1.2.3.4]" + sample: ["DNS:www.ansible.com", "IP:1.2.3.4"] authority_cert_serial_number: description: - The CSR's authority cert serial number. - Is C(none) if the C(AuthorityKeyIdentifier) extension is not present. returned: success type: int - sample: '12345' + sample: 12345 ''' diff --git a/plugins/modules/openssl_csr_pipe.py b/plugins/modules/openssl_csr_pipe.py index 1fd6079a..f5ac86cf 100644 --- a/plugins/modules/openssl_csr_pipe.py +++ b/plugins/modules/openssl_csr_pipe.py @@ -67,7 +67,7 @@ subject: returned: changed or success type: list elements: list - sample: "[('CN', 'www.ansible.com'), ('O', 'Ansible')]" + sample: [['CN', 'www.ansible.com'], ['O', 'Ansible']] subjectAltName: description: The alternative names this CSR is valid for returned: changed or success diff --git a/plugins/modules/x509_certificate_info.py b/plugins/modules/x509_certificate_info.py index 7d6f3ce7..34883987 100644 --- a/plugins/modules/x509_certificate_info.py +++ b/plugins/modules/x509_certificate_info.py @@ -126,7 +126,7 @@ basic_constraints: returned: success type: list elements: str - sample: "[CA:TRUE, pathlen:1]" + sample: ["CA:TRUE", "pathlen:1"] basic_constraints_critical: description: Whether the C(basic_constraints) extension is critical. returned: success @@ -136,7 +136,7 @@ extended_key_usage: returned: success type: list elements: str - sample: "[Biometric Info, DVCS, Time Stamping]" + sample: [Biometric Info, DVCS, Time Stamping] extended_key_usage_critical: description: Whether the C(extended_key_usage) extension is critical. returned: success @@ -161,12 +161,12 @@ extensions_by_oid: returned: success type: str sample: "MAMCAQU=" - sample: '{"1.3.6.1.5.5.7.1.24": { "critical": false, "value": "MAMCAQU="}}' + sample: {"1.3.6.1.5.5.7.1.24": { "critical": false, "value": "MAMCAQU="}} key_usage: description: Entries in the C(key_usage) extension, or C(none) if extension is not present. returned: success type: str - sample: "[Key Agreement, Data Encipherment]" + sample: [Key Agreement, Data Encipherment] key_usage_critical: description: Whether the C(key_usage) extension is critical. returned: success @@ -178,7 +178,7 @@ subject_alt_name: returned: success type: list elements: str - sample: "[DNS:www.ansible.com, IP:1.2.3.4]" + sample: ["DNS:www.ansible.com", "IP:1.2.3.4"] subject_alt_name_critical: description: Whether the C(subject_alt_name) extension is critical. returned: success @@ -197,36 +197,36 @@ issuer: - Note that for repeated values, only the last one will be returned. returned: success type: dict - sample: '{"organizationName": "Ansible", "commonName": "ca.example.com"}' + sample: {"organizationName": "Ansible", "commonName": "ca.example.com"} issuer_ordered: description: The certificate's issuer as an ordered list of tuples. returned: success type: list elements: list - sample: '[["organizationName", "Ansible"], ["commonName": "ca.example.com"]]' + sample: [["organizationName", "Ansible"], ["commonName": "ca.example.com"]] subject: description: - The certificate's subject as a dictionary. - Note that for repeated values, only the last one will be returned. returned: success type: dict - sample: '{"commonName": "www.example.com", "emailAddress": "test@example.com"}' + sample: {"commonName": "www.example.com", "emailAddress": "test@example.com"} subject_ordered: description: The certificate's subject as an ordered list of tuples. returned: success type: list elements: list - sample: '[["commonName", "www.example.com"], ["emailAddress": "test@example.com"]]' + sample: [["commonName", "www.example.com"], ["emailAddress": "test@example.com"]] not_after: description: C(notAfter) date as ASN.1 TIME. returned: success type: str - sample: 20190413202428Z + sample: '20190413202428Z' not_before: description: C(notBefore) date as ASN.1 TIME. returned: success type: str - sample: 20190331202428Z + sample: '20190331202428Z' public_key: description: Certificate's public key in PEM format. returned: success @@ -365,14 +365,14 @@ authority_cert_issuer: returned: success type: list elements: str - sample: "[DNS:www.ansible.com, IP:1.2.3.4]" + sample: ["DNS:www.ansible.com", "IP:1.2.3.4"] authority_cert_serial_number: description: - The certificate's authority cert serial number. - Is C(none) if the C(AuthorityKeyIdentifier) extension is not present. returned: success type: int - sample: '12345' + sample: 12345 ocsp_uri: description: The OCSP responder URI, if included in the certificate. Will be C(none) if no OCSP responder URI is included. diff --git a/plugins/modules/x509_crl.py b/plugins/modules/x509_crl.py index 557d8fe0..24d3124e 100644 --- a/plugins/modules/x509_crl.py +++ b/plugins/modules/x509_crl.py @@ -302,13 +302,13 @@ issuer: - See I(name_encoding) for how IDNs are handled. returned: success type: dict - sample: '{"organizationName": "Ansible", "commonName": "ca.example.com"}' + sample: {"organizationName": "Ansible", "commonName": "ca.example.com"} issuer_ordered: description: The CRL's issuer as an ordered list of tuples. returned: success type: list elements: list - sample: '[["organizationName", "Ansible"], ["commonName": "ca.example.com"]]' + sample: [["organizationName", "Ansible"], ["commonName": "ca.example.com"]] last_update: description: The point in time from which this CRL can be trusted as ASN.1 TIME. returned: success @@ -344,7 +344,7 @@ revoked_certificates: - See I(name_encoding) for how IDNs are handled. type: list elements: str - sample: '["DNS:ca.example.org"]' + sample: ["DNS:ca.example.org"] issuer_critical: description: Whether the certificate issuer extension is critical. type: bool diff --git a/plugins/modules/x509_crl_info.py b/plugins/modules/x509_crl_info.py index 69a1ebbd..57156fe9 100644 --- a/plugins/modules/x509_crl_info.py +++ b/plugins/modules/x509_crl_info.py @@ -83,23 +83,23 @@ issuer: - See I(name_encoding) for how IDNs are handled. returned: success type: dict - sample: '{"organizationName": "Ansible", "commonName": "ca.example.com"}' + sample: {"organizationName": "Ansible", "commonName": "ca.example.com"} issuer_ordered: description: The CRL's issuer as an ordered list of tuples. returned: success type: list elements: list - sample: '[["organizationName", "Ansible"], ["commonName": "ca.example.com"]]' + sample: [["organizationName", "Ansible"], ["commonName": "ca.example.com"]] last_update: description: The point in time from which this CRL can be trusted as ASN.1 TIME. returned: success type: str - sample: 20190413202428Z + sample: '20190413202428Z' next_update: description: The point in time from which a new CRL will be issued and the client has to check for it as ASN.1 TIME. returned: success type: str - sample: 20190413202428Z + sample: '20190413202428Z' digest: description: The signature algorithm used to sign the CRL. returned: success @@ -118,14 +118,14 @@ revoked_certificates: revocation_date: description: The point in time the certificate was revoked as ASN.1 TIME. type: str - sample: 20190413202428Z + sample: '20190413202428Z' issuer: description: - The certificate's issuer. - See I(name_encoding) for how IDNs are handled. type: list elements: str - sample: '["DNS:ca.example.org"]' + sample: ["DNS:ca.example.org"] issuer_critical: description: Whether the certificate issuer extension is critical. type: bool @@ -147,7 +147,7 @@ revoked_certificates: The point in time it was known/suspected that the private key was compromised or that the certificate otherwise became invalid as ASN.1 TIME. type: str - sample: 20190413202428Z + sample: '20190413202428Z' invalidity_date_critical: description: Whether the invalidity date extension is critical. type: bool