Playbook #5

/home/zuul/src/opendev.org/opendev/system-config/playbooks/letsencrypt.yaml

Report Status CLI Date Duration Controller User Versions Hosts Plays Tasks Results Files Records
18 Jul 2025 20:47:32 +0000 00:00:24.78 bridge99.opendev.org root Ansible 2.15.13 ara 1.7.2 (client), 1.7.2 (server) Python 3.10.12 2 5 47 47 33 0

File: /home/zuul/src/opendev.org/opendev/system-config/playbooks/roles/letsencrypt-config-certcheck/tasks/build_le_domain_list.yaml

# We've seen the lookups of hosts in hostvars below fail to find the
# letsencrypt_certcheck_domains value. For some reason ansible doesn't
# record the value of our loopvar when failing an iteration (it does when
# the loop iteration succeeds) so we don't know where it is breaking. Add
# our own debugging here to work around this problem.
#
# The error described above may occur if LE fails on the host we are
# checking domains for. Ansible will stop on that host which doesn't build
# the necessary datastructures. Then when we try to set up certcheck we
# fail again in a more eye catching manner.
- name: Record host being looked up for le certcheck domains
  debug:
    msg: "Checking domains for {{ inv_hostname }}"

- name: Build SSL domain list
  set_fact:
    letsencrypt_certcheck_domains: '{{ letsencrypt_certcheck_domains + hostvars[inv_hostname]["letsencrypt_certcheck_domains"] }}'