acme_certificate: fix docs (#57557)

* Fix indentation.

* Forgot when condition for second acme_certificate call.
This commit is contained in:
Felix Fontein 2019-06-08 08:11:58 +02:00 committed by ansibot
parent be84cada09
commit 9d67f476e6

View file

@ -269,7 +269,7 @@ EXAMPLES = r'''
# wait: yes # wait: yes
# # Note: route53 requires TXT entries to be enclosed in quotes # # Note: route53 requires TXT entries to be enclosed in quotes
# value: "{{ sample_com_challenge.challenge_data['sample.com']['dns-01'].resource_value | regex_replace('^(.*)$', '\"\\1\"') }}" # value: "{{ sample_com_challenge.challenge_data['sample.com']['dns-01'].resource_value | regex_replace('^(.*)$', '\"\\1\"') }}"
# when: sample_com_challenge is changed # when: sample_com_challenge is changed
# #
# Alternative way: # Alternative way:
# #
@ -283,8 +283,8 @@ EXAMPLES = r'''
# # Note: item.value is a list of TXT entries, and route53 # # Note: item.value is a list of TXT entries, and route53
# # requires every entry to be enclosed in quotes # # requires every entry to be enclosed in quotes
# value: "{{ item.value | map('regex_replace', '^(.*)$', '\"\\1\"' ) | list }}" # value: "{{ item.value | map('regex_replace', '^(.*)$', '\"\\1\"' ) | list }}"
# loop: "{{ sample_com_challenge.challenge_data_dns | dictsort }}" # loop: "{{ sample_com_challenge.challenge_data_dns | dictsort }}"
# when: sample_com_challenge is changed # when: sample_com_challenge is changed
- name: Let the challenge be validated and retrieve the cert and intermediate certificate - name: Let the challenge be validated and retrieve the cert and intermediate certificate
acme_certificate: acme_certificate:
@ -298,6 +298,7 @@ EXAMPLES = r'''
acme_directory: https://acme-v01.api.letsencrypt.org/directory acme_directory: https://acme-v01.api.letsencrypt.org/directory
remaining_days: 60 remaining_days: 60
data: "{{ sample_com_challenge }}" data: "{{ sample_com_challenge }}"
when: sample_com_challenge is changed
''' '''
RETURN = ''' RETURN = '''