-name:'Buildargumentsforletsencryptacme.shdriverfor:{{cert.key}}'set_fact:# NOTE(ianw): note the domains are passed in one string (between# ") as it makes argument parsing a little easier in the driver.shacme_args:'"{%fordomainincert.value%}-d{{domain.split(":")[0]}}{%endfor%}"'-name:Run acme.sh driver for certificate issueshell:cmd:|/opt/acme.sh/driver.sh {{ 'issue-selfsign' if letsencrypt_self_generate_tokens else 'issue' }} {{ acme_args }}args:chdir:/opt/acme.sh/register:acme_outputenvironment:LETSENCRYPT_STAGING:'{{"1"ifletsencrypt_use_stagingelse"0"}}'# NOTE(ianw): The output of the driver is## challenge-domain:TXT-key## We don't care about the challenge-domain part (we have set all# _acme-challenge.hostname.o.o records as CNAMES to acme.opendev.org).# Record the config key along with the TXT record; later we use it to# check which config keys have been updated and need a refresh.#-set_fact:acme_txt_required:'{{acme_txt_required+[(cert.key,item.split(":")[1])]}}'loop:'{{acme_output.stdout_lines}}'