Created
April 1, 2018 15:03
-
-
Save abn/cbf622730a8d0599a7eb23dd5cad738e to your computer and use it in GitHub Desktop.
Install letsencrypt cross signed certs for Red Hat distros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# https://letsencrypt.org/certificates/ | |
- hosts: all | |
tasks: | |
- name: install letsencrypt cross-signed x3 | |
get_url: | |
url: https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt | |
dest: /etc/pki/ca-trust/source/anchors/lets-encrypt-x3-cross-signed.pem | |
register: x3 | |
- name: install letsencrypt cross-signed x4 | |
get_url: | |
url: https://letsencrypt.org/certs/lets-encrypt-x4-cross-signed.pem.txt | |
dest: /etc/pki/ca-trust/source/anchors/lets-encrypt-x4-cross-signed.pem | |
register: x4 | |
- name: | |
command: update-ca-trust --extract | |
when: x3.changed or x4.changed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment