CONTENTS_REDACTED.TLD_wildcard.yaml 708 B

12345678910111213141516
  1. # Given a leaf certificate for www.ansible.com and one or more intermediate
  2. # certificates, finds the associated root certificate.
  3. - name: Find root certificate
  4. community.crypto.certificate_complete_chain:
  5. input_chain: "{{ lookup('ansible.builtin.file', '/etc/ssl/csr/***CONTENTS REDACTED***-fullchain.pem') }}"
  6. root_certificates:
  7. - /etc/ca-certificates/
  8. register: www_ansible_com
  9. - name: Write root certificate to disk
  10. ansible.builtin.copy:
  11. dest: /etc/ssl/csr/***CONTENTS REDACTED***-root.pem
  12. content: "{{ www_ansible_com.root }}"
  13. /etc/ssl/certs/***CONTENTS REDACTED***.cert
  14. /etc/ssl/private/***CONTENTS REDACTED***.edu.key
  15. /etc/ssl/certs/***CONTENTS REDACTED***.edu-cabundle.pem