Commit 4251a5b5 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

add cert local interm

parent 9a23bf58
......@@ -81,16 +81,39 @@
loop: "{{ apache_vhosts }}"
when: "item.ssl_type | default('certbot')== 'uib'"
- name: "Get certificate with embedded chain (pem)"
- name: "Get certificate with certificate only"
loop: "{{ apache_vhosts }}"
get_url:
url: "{{ item.certificate_url }}"
url: "{{ item.certificate_only_url }}"
setype: "cert_t"
dest: "{{ apache_digicert_uib_archive }}//{{ item.servername }}/cert.pem"
dest: "{{ apache_digicert_uib_archive }}//{{ item.servername }}/cert.cer"
backup: "yes"
mode: "0444"
when: "item.ssl_type | default('certbot')== 'uib'"
- name: "Get intermediate certs only"
loop: "{{ apache_vhosts }}"
get_url:
url: "{{ item.certificate_interm_only_url }}"
setype: "cert_t"
dest: "{{ apache_digicert_uib_archive }}//{{ item.servername }}/cert_interm.cer"
backup: "yes"
mode: "0444"
when: "item.ssl_type | default('certbot')== 'uib'"
- name: "concat cert and intermediate"
loop: "{{ apache_vhosts }}"
shell: cat cert.cet cert_interm.cer >> cert.pem
chdir: "{{ apache_digicert_uib_archive }}//{{ item.servername }}"
url: "{{ item.certificate_interm_only_url }}"
setype: "cert_t"
dest: "{{ apache_digicert_uib_archive }}//{{ item.servername }}/cert_interm.cer"
backup: "yes"
mode: "0444"
when: "item.ssl_type | default('certbot')== 'uib'"
creates: "{ apache_digicert_uib_archive }}//{{ item.servername }}/cert.pem"
- name: "Create symlinks for certificates to /etc/pki/"
loop: "{{ apache_vhosts }}"
file:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment